Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

Commit

Permalink
feat(dup): implement is_duplicating (#356)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wu Tao authored and neverchanje committed Mar 29, 2020
1 parent 7ae6178 commit 46f9760
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 47 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ void replica_duplicator_manager::update_confirmed_decree_if_secondary(decree con
_primary_confirmed_decree = confirmed;
}
}
_replica->update_init_info_duplicating(confirmed >= 0);
}

} // namespace replication
Expand Down
7 changes: 4 additions & 3 deletions src/dist/replication/lib/replica.h
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,11 @@ class replica : public serverlet<replica>, public ref_counter, public replica_ba
bool verbose_commit_log() const;
dsn::task_tracker *tracker() { return &_tracker; }

/// \see replica_duplicate.cpp
//
// Duplication
//
replica_duplicator_manager *get_duplication_manager() const { return _duplication_mgr.get(); }
bool is_duplicating() const;
void update_init_info_duplicating(bool duplicating);
bool is_duplicating() const { return _app_info.duplicating; }

void update_last_checkpoint_generate_time();

Expand Down
43 changes: 0 additions & 43 deletions src/dist/replication/lib/replica_duplicate.cpp

This file was deleted.

0 comments on commit 46f9760

Please sign in to comment.