test(replication test): check data only after replica finished execution (#746)

Signed-off-by: adi_holden <adi@dragonflydb.io>
This commit is contained in:
adiholden 2023-02-02 15:08:44 +02:00 committed by GitHub
parent 69519b2c5b
commit 4b29dece0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 12 deletions

View file

@ -373,7 +373,7 @@ bool Transaction::RunInShard(EngineShard* shard) {
/*************************************************************************/
if (!was_suspended && is_concluding) // Check last hop & non suspended.
if (is_concluding) // Check last hop
LogAutoJournalOnShard(shard);
// at least the coordinator thread owns the reference.