mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-10 18:05:44 +02:00
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:
parent
3ec43afd30
commit
b2e2ad6e04
17 changed files with 77 additions and 37 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue