Skip to content

Commit d319248

Browse files
additional memory monitoring
1 parent 5c26443 commit d319248

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

ydb/core/tx/columnshard/columnshard__init.cpp

+11-7
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ bool TTxInit::ReadEverything(TTransactionContext& txc, const TActorContext& ctx)
159159
}
160160

161161
{
162+
TMemoryProfileGuard g("TTxInit/LongTxWrites");
162163
auto rowset = db.Table<Schema::LongTxWrites>().Select();
163164
if (!rowset.IsReady()) {
164165
return false;
@@ -179,13 +180,16 @@ bool TTxInit::ReadEverything(TTransactionContext& txc, const TActorContext& ctx)
179180
}
180181
}
181182

182-
for (const auto& pr : Self->CommitsInFlight) {
183-
ui64 txId = pr.first;
184-
for (TWriteId writeId : pr.second.WriteIds) {
185-
Y_ABORT_UNLESS(Self->LongTxWrites.contains(writeId),
186-
"TTxInit at %" PRIu64 " : Commit %" PRIu64 " references local write %" PRIu64 " that doesn't exist",
187-
Self->TabletID(), txId, writeId);
188-
Self->AddLongTxWrite(writeId, txId);
183+
{
184+
TMemoryProfileGuard g("TTxInit/CommitsInFlight");
185+
for (const auto& pr : Self->CommitsInFlight) {
186+
ui64 txId = pr.first;
187+
for (TWriteId writeId : pr.second.WriteIds) {
188+
Y_ABORT_UNLESS(Self->LongTxWrites.contains(writeId),
189+
"TTxInit at %" PRIu64 " : Commit %" PRIu64 " references local write %" PRIu64 " that doesn't exist",
190+
Self->TabletID(), txId, writeId);
191+
Self->AddLongTxWrite(writeId, txId);
192+
}
189193
}
190194
}
191195
Self->UpdateInsertTableCounters();

0 commit comments

Comments
 (0)