Skip to content

Commit ed45a46

Browse files
add interface to flush dc_lsn (eBay#863)
flush_durable_commit_lsn is used to persist the dc_lsn of a repl_dev. for raft_repl_dev, all the logs between cp_lsn and dc lsn will be recommitted again in log replay when restart.
1 parent 44ab175 commit ed45a46

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

conanfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
class HomestoreConan(ConanFile):
1111
name = "homestore"
12-
version = "7.3.3"
12+
version = "7.4.1"
1313

1414
homepage = "https://github.com/eBay/Homestore"
1515
description = "HomeStore Storage Engine"

src/include/homestore/replication/repl_dev.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -624,6 +624,8 @@ class ReplDev {
624624

625625
virtual void reset_latch_lsn() { return; }
626626

627+
virtual void flush_durable_commit_lsn() {}
628+
627629
virtual shared< ReplDevListener > get_listener() { return m_listener; }
628630

629631
// we have no shutdown for repl_dev, since shutdown repl_dev is done by repl_service

src/lib/replication/repl_dev/raft_repl_dev.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ class RaftReplDev : public ReplDev,
420420
/**
421421
* Flush the durable commit LSN to the superblock
422422
*/
423-
void flush_durable_commit_lsn();
423+
void flush_durable_commit_lsn() override;
424424

425425
/**
426426
* Monitor the replace_member replication status, if the new member is fully synced up and ready to take over,

0 commit comments

Comments
 (0)