diff --git a/src/server/replica.h b/src/server/replica.h index 6ce11f3be..198b8c211 100644 --- a/src/server/replica.h +++ b/src/server/replica.h @@ -74,10 +74,6 @@ class Replica : ProtocolClient { 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 */ // Coordinate state transitions. Spawned by start. void MainReplicationFb(); @@ -104,8 +100,6 @@ class Replica : ProtocolClient { // Send DFLY ${kind} to the master instance. std::error_code SendNextPhaseRequest(std::string_view kind); - void AclCheckFb(); - private: /* Utility */ struct PSyncResponse { // string - end of sync token (diskless) @@ -133,14 +127,6 @@ class Replica : ProtocolClient { return !master_context_.dfly_session_id.empty(); } - const std::string& MasterHost() const { - return server().host; - } - - uint16_t Port() const { - return server().port; - } - std::vector GetReplicaOffset() const; std::string GetSyncId() const;