fix: slot calculation during transaction squashing (#4460)

This commit is contained in:
Borys 2025-01-15 13:43:52 +02:00 committed by GitHub
parent 5ba608b58d
commit 0e116b1535
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 19 additions and 22 deletions

View file

@ -325,6 +325,7 @@ void Transaction::InitByKeys(const KeyIndex& key_index) {
// Stub transactions always operate only on single shard.
bool is_stub = multi_ && multi_->role == SQUASHED_STUB;
unique_slot_checker_.Reset();
if ((key_index.NumArgs() == 1 && !IsAtomicMulti()) || is_stub) {
DCHECK(!IsActiveMulti() || multi_->mode == NON_ATOMIC);