feat(server): Replace channel slice with store (#938)

* feat(server): Replace channel slice with store

Signed-off-by: Vladislav Oleshko <vlad@dragonflydb.io>

---------

Signed-off-by: Vladislav Oleshko <vlad@dragonflydb.io>
This commit is contained in:
Vladislav 2023-03-20 11:46:08 +03:00 committed by GitHub
parent 34aec80e5a
commit 03fb21a280
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 299 additions and 410 deletions

View file

@ -119,6 +119,7 @@ class Service : public facade::ServiceInterface {
void CallFromScript(CmdArgList args, ObjectExplorer* reply, ConnectionContext* cntx);
void RegisterCommands();
base::VarzValue::Map GetVarzStats();
util::ProactorPool& pp_;
@ -128,7 +129,6 @@ class Service : public facade::ServiceInterface {
absl::flat_hash_map<std::string, unsigned> unknown_cmds_;
mutable ::boost::fibers::mutex mu_;
GlobalState global_state_ = GlobalState::ACTIVE; // protected by mu_;
};