Skip to content

Commit 25029c1

Browse files
heap-use-after-free in a PQ tablet (#30257)
1 parent 3fe8372 commit 25029c1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ydb/core/persqueue/pqtablet/pq_impl.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5217,8 +5217,10 @@ void TPersQueue::BeginDeletePartitions(const TWriteId& writeId, TTxWriteInfo& wr
52175217
PQ_LOG_TX_D("Already deleting WriteInfo");
52185218
return;
52195219
}
5220+
writeInfo.Deleting = true;
52205221
if (writeInfo.Partitions.empty()) {
52215222
TryDeleteWriteId(writeId, writeInfo, ActorContext());
5223+
TxWritesChanged = true;
52225224
} else {
52235225
for (auto& [_, partitionId] : writeInfo.Partitions) {
52245226
PQ_ENSURE(Partitions.contains(partitionId));
@@ -5227,7 +5229,6 @@ void TPersQueue::BeginDeletePartitions(const TWriteId& writeId, TTxWriteInfo& wr
52275229
Send(partition.Actor, new TEvPQ::TEvDeletePartition);
52285230
}
52295231
}
5230-
writeInfo.Deleting = true;
52315232
}
52325233

52335234
void TPersQueue::BeginDeletePartitions(const TDistributedTransaction& tx)

0 commit comments

Comments
 (0)