Skip to content

Commit cceacdc

Browse files
authored
24-1: Fix use-after-free when debug logging read errors (ydb-platform#2816)
1 parent 6d4a423 commit cceacdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ydb/core/tx/datashard/datashard__read_iterator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2490,9 +2490,9 @@ class TDataShard::TTxReadContinue : public NTabletFlatExecutor::TTransactionBase
24902490
if (record.HasStatus()) {
24912491
record.SetSeqNo(state.SeqNo + 1);
24922492
record.SetReadId(readId.ReadId);
2493-
Self->SendImmediateReadResult(request->Reader, Result.release(), 0, state.SessionId);
24942493
LOG_DEBUG_S(ctx, NKikimrServices::TX_DATASHARD, Self->TabletID() << " read iterator# " << readId
24952494
<< " TTxReadContinue::Execute() finished with error, aborting: " << record.DebugString());
2495+
Self->SendImmediateReadResult(request->Reader, Result.release(), 0, state.SessionId);
24962496

24972497
state.Request->ReadSpan.EndError("Finished with error");
24982498
Self->DeleteReadIterator(it);

0 commit comments

Comments
 (0)