feat(server): check master journal lsn in replica (#2778)

Send journal lsn to replica and compare the lsn value against number of records received in replica side

Signed-off-by: kostas <kostas@dragonflydb.io>
Co-authored-by: adi_holden <adi@dragonflydb.io>
This commit is contained in:
Kostas Kyrimis 2024-04-01 17:51:31 +03:00 committed by GitHub
parent 3ec43afd30
commit b2e2ad6e04
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 77 additions and 37 deletions

View file

@ -696,7 +696,7 @@ void Transaction::RunCallback(EngineShard* shard) {
coordinator_state_ &= ~COORD_CONCLUDING; // safe because single shard
}
// Log to jounrnal only once the command finished running
// Log to journal only once the command finished running
if ((coordinator_state_ & COORD_CONCLUDING) || (multi_ && multi_->concluding))
LogAutoJournalOnShard(shard, result);
}