mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 10:25:47 +02:00
chore(replica): remove unused methods in the Replica class (#3374)
Signed-off-by: Stepan Bagritsevich <bagr.stepan@gmail.com>
This commit is contained in:
parent
cd863b89b4
commit
37cb247cd4
1 changed files with 0 additions and 14 deletions
|
@ -74,10 +74,6 @@ class Replica : ProtocolClient {
|
||||||
|
|
||||||
std::error_code TakeOver(std::string_view timeout, bool save_flag);
|
std::error_code TakeOver(std::string_view timeout, bool save_flag);
|
||||||
|
|
||||||
std::string_view MasterId() const {
|
|
||||||
return master_context_.master_repl_id;
|
|
||||||
}
|
|
||||||
|
|
||||||
private: /* Main standalone mode functions */
|
private: /* Main standalone mode functions */
|
||||||
// Coordinate state transitions. Spawned by start.
|
// Coordinate state transitions. Spawned by start.
|
||||||
void MainReplicationFb();
|
void MainReplicationFb();
|
||||||
|
@ -104,8 +100,6 @@ class Replica : ProtocolClient {
|
||||||
// Send DFLY ${kind} to the master instance.
|
// Send DFLY ${kind} to the master instance.
|
||||||
std::error_code SendNextPhaseRequest(std::string_view kind);
|
std::error_code SendNextPhaseRequest(std::string_view kind);
|
||||||
|
|
||||||
void AclCheckFb();
|
|
||||||
|
|
||||||
private: /* Utility */
|
private: /* Utility */
|
||||||
struct PSyncResponse {
|
struct PSyncResponse {
|
||||||
// string - end of sync token (diskless)
|
// string - end of sync token (diskless)
|
||||||
|
@ -133,14 +127,6 @@ class Replica : ProtocolClient {
|
||||||
return !master_context_.dfly_session_id.empty();
|
return !master_context_.dfly_session_id.empty();
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::string& MasterHost() const {
|
|
||||||
return server().host;
|
|
||||||
}
|
|
||||||
|
|
||||||
uint16_t Port() const {
|
|
||||||
return server().port;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::vector<uint64_t> GetReplicaOffset() const;
|
std::vector<uint64_t> GetReplicaOffset() const;
|
||||||
std::string GetSyncId() const;
|
std::string GetSyncId() const;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue