File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -313,6 +313,9 @@ class TCommitOperation {
313313 auto & lock = evWrite.Record .GetLocks ().GetLocks ()[0 ];
314314 SendingShards = std::set<ui64>(locks.GetSendingShards ().begin (), locks.GetSendingShards ().end ());
315315 ReceivingShards = std::set<ui64>(locks.GetReceivingShards ().begin (), locks.GetReceivingShards ().end ());
316+ if (SendingShards.empty () != ReceivingShards.empty ()) {
317+ return TConclusionStatus::Fail (" incorrect synchronization data (send/receiving lists)" );
318+ }
316319 if (ReceivingShards.size () && SendingShards.size ()) {
317320 if (!locks.HasArbiterColumnShard ()) {
318321 ArbiterColumnShard = *ReceivingShards.begin ();
@@ -326,8 +329,6 @@ class TCommitOperation {
326329 return TConclusionStatus::Fail (" shard is incorrect for sending/receiving lists" );
327330 }
328331 }
329- } else {
330- AFL_VERIFY (!SendingShards.size () && !ReceivingShards.size ());
331332 }
332333
333334 TxId = evWrite.Record .GetTxId ();
You can’t perform that action at this time.
0 commit comments