mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 18:35:46 +02:00
feat server: support partial sync from last master
Signed-off-by: adi_holden <adi@dragonflydb.io>
This commit is contained in:
parent
614096d547
commit
a90a5a28b5
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,6 @@ std::optional<Replica::LastMasterSyncData> Replica::Stop() {
|
|||
VLOG(1) << "Stopping replication " << this;
|
||||
// Stops the loop in MainReplicationFb.
|
||||
|
||||
// bool is_stable_sync = state_mask_.load() & R_SYNC_OK;
|
||||
proactor_->Await([this] {
|
||||
state_mask_.store(0); // Specifically ~R_ENABLED.
|
||||
exec_st_.ReportCancelError(); // Context is fully resposible for cleanup.
|
||||
|
@ -155,6 +154,7 @@ std::optional<Replica::LastMasterSyncData> Replica::Stop() {
|
|||
for (auto& flow : shard_flows_) {
|
||||
flow.reset();
|
||||
}
|
||||
|
||||
if (last_journal_LSNs_.has_value()) {
|
||||
LastMasterSyncData data;
|
||||
data.id = master_context_.master_repl_id;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue