chore: reduce dependency of debug/memory commands on ConnectionContext (#3977)

chore: reduce dependency of debug/dfly/memory commands on ConnectionContext
This commit is contained in:
Roman Gershman 2024-10-24 10:24:18 +03:00 committed by GitHub
parent 4aa0ca1ef7
commit 132ffe0920
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 113 additions and 117 deletions

View file

@ -1563,7 +1563,7 @@ optional<Replica::Summary> ServerFamily::GetReplicaSummary() const {
}
void ServerFamily::OnClose(ConnectionContext* cntx) {
dfly_cmd_->OnClose(cntx);
dfly_cmd_->OnClose(cntx->conn_state.replication_info.repl_session_id);
}
void ServerFamily::StatsMC(std::string_view section, facade::ConnectionContext* cntx) {
@ -3016,7 +3016,7 @@ void ServerFamily::ShutdownCmd(CmdArgList args, ConnectionContext* cntx) {
}
void ServerFamily::Dfly(CmdArgList args, ConnectionContext* cntx) {
dfly_cmd_->Run(args, cntx);
dfly_cmd_->Run(args, static_cast<RedisReplyBuilder*>(cntx->reply_builder()), cntx);
}
void ServerFamily::SlowLog(CmdArgList args, ConnectionContext* cntx) {