mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-10 18:05:44 +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::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<uint64_t> GetReplicaOffset() const;
|
||||
std::string GetSyncId() const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue