@@ -4382,8 +4382,8 @@ void TPersQueue::CheckTxState(const TActorContext& ctx,
4382
4382
4383
4383
case NKikimrPQ::TTransaction::WAIT_RS_ACKS:
4384
4384
PQ_LOG_D (" HaveAllRecipientsReceive " << tx.HaveAllRecipientsReceive () <<
4385
- " , WriteIdIsDisabled " << WriteIdIsDisabled (tx.WriteId ));
4386
- if (tx.HaveAllRecipientsReceive () && WriteIdIsDisabled (tx.WriteId )) {
4385
+ " , AllSupportivePartitionsHaveBeenDeleted " << AllSupportivePartitionsHaveBeenDeleted (tx.WriteId ));
4386
+ if (tx.HaveAllRecipientsReceive () && AllSupportivePartitionsHaveBeenDeleted (tx.WriteId )) {
4387
4387
DeleteTx (tx);
4388
4388
// implicitly switch to the state DELETING
4389
4389
}
@@ -4408,7 +4408,7 @@ void TPersQueue::CheckTxState(const TActorContext& ctx,
4408
4408
}
4409
4409
}
4410
4410
4411
- bool TPersQueue::WriteIdIsDisabled (const TMaybe<TWriteId>& writeId) const
4411
+ bool TPersQueue::AllSupportivePartitionsHaveBeenDeleted (const TMaybe<TWriteId>& writeId) const
4412
4412
{
4413
4413
if (!writeId.Defined ()) {
4414
4414
return true ;
@@ -4420,16 +4420,12 @@ bool TPersQueue::WriteIdIsDisabled(const TMaybe<TWriteId>& writeId) const
4420
4420
const TTxWriteInfo& writeInfo = TxWrites.at (*writeId);
4421
4421
4422
4422
PQ_LOG_D (" WriteId " << *writeId <<
4423
- " LongTxSubscriptionStatus=" << NKikimrLongTxService::TEvLockStatus_EStatus_Name (writeInfo.LongTxSubscriptionStatus ) <<
4424
- " Partitions=" << writeInfo.Partitions .size ());
4425
- bool disabled =
4426
- // (writeInfo.LongTxSubscriptionStatus != NKikimrLongTxService::TEvLockStatus::STATUS_SUBSCRIBED) &&
4423
+ " Partitions.size=" << writeInfo.Partitions .size ());
4424
+ bool deleted =
4427
4425
writeInfo.Partitions .empty ()
4428
4426
;
4429
4427
4430
- PQ_LOG_D (" WriteId " << *writeId << " is " << (disabled ? " disabled" : " enabled" ));
4431
-
4432
- return disabled;
4428
+ return deleted;
4433
4429
}
4434
4430
4435
4431
void TPersQueue::DeleteWriteId (const TMaybe<TWriteId>& writeId)
0 commit comments