Skip to content

Commit

Permalink
Update columnshard__write.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
zverevgeny authored Jan 7, 2025
1 parent d0e1889 commit 4ffeee8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ydb/core/tx/columnshard/columnshard__write.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ class TCommitOperation {
using TPtr = std::shared_ptr<TCommitOperation>;

bool NeedSyncLocks() const {
return SendingShards.size() && ReceivingShards.size();
return SendingShards.size() || ReceivingShards.size();
}

bool IsPrimary() const {
Expand Down

0 comments on commit 4ffeee8

Please sign in to comment.