@@ -159,6 +159,7 @@ bool TTxInit::ReadEverything(TTransactionContext& txc, const TActorContext& ctx)
159
159
}
160
160
161
161
{
162
+ TMemoryProfileGuard g (" TTxInit/LongTxWrites" );
162
163
auto rowset = db.Table <Schema::LongTxWrites>().Select ();
163
164
if (!rowset.IsReady ()) {
164
165
return false ;
@@ -179,13 +180,16 @@ bool TTxInit::ReadEverything(TTransactionContext& txc, const TActorContext& ctx)
179
180
}
180
181
}
181
182
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
+ }
189
193
}
190
194
}
191
195
Self->UpdateInsertTableCounters ();
0 commit comments