mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 10:25:47 +02:00
feat: introduce config set command (#1574)
feat: introduce "config set" command Solves #1551. In detail, we introduce ConfigRegistry that holds a curated set of flags that could be changed at run-time. Signed-off-by: Roman Gershman <roman@dragonflydb.io>
This commit is contained in:
parent
9698d6fea2
commit
0fe6e36f25
12 changed files with 162 additions and 150 deletions
|
@ -9,6 +9,7 @@
|
|||
#include "facade/service_interface.h"
|
||||
#include "server/cluster/cluster_family.h"
|
||||
#include "server/command_registry.h"
|
||||
#include "server/config_registry.h"
|
||||
#include "server/engine_shard_set.h"
|
||||
#include "server/server_family.h"
|
||||
|
||||
|
@ -19,8 +20,8 @@ class AcceptServer;
|
|||
namespace dfly {
|
||||
|
||||
class Interpreter;
|
||||
class ObjectExplorer; // for Interpreter
|
||||
using facade::MemcacheParser;
|
||||
|
||||
class Service : public facade::ServiceInterface {
|
||||
public:
|
||||
using error_code = std::error_code;
|
||||
|
@ -151,4 +152,7 @@ class Service : public facade::ServiceInterface {
|
|||
GlobalState global_state_ = GlobalState::ACTIVE; // protected by mu_;
|
||||
};
|
||||
|
||||
uint64_t GetMaxMemoryFlag();
|
||||
void SetMaxMemoryFlag(uint64_t value);
|
||||
|
||||
} // namespace dfly
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue