mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 18:35:46 +02:00
feat: Add dbfilename to config registry (#2598)
Also make "dir" read-only parameter. Signed-off-by: Roman Gershman <roman@dragonflydb.io>
This commit is contained in:
parent
f847a3f4cd
commit
1e06c63727
1 changed files with 3 additions and 2 deletions
|
@ -789,14 +789,15 @@ void Service::Init(util::AcceptServer* acceptor, std::vector<facade::Listener*>
|
|||
return true;
|
||||
});
|
||||
|
||||
config_registry.Register("dbnum"); // equivalent to databases in redis.
|
||||
config_registry.RegisterMutable("dir"); // TODO: to add validation for dir
|
||||
config_registry.Register("dbnum"); // equivalent to databases in redis.
|
||||
config_registry.Register("dir");
|
||||
config_registry.RegisterMutable("masterauth");
|
||||
config_registry.RegisterMutable("tcp_keepalive");
|
||||
config_registry.RegisterMutable("replica_partial_sync");
|
||||
config_registry.RegisterMutable("max_eviction_per_heartbeat");
|
||||
config_registry.RegisterMutable("max_segment_to_consider");
|
||||
config_registry.RegisterMutable("enable_heartbeat_eviction");
|
||||
config_registry.RegisterMutable("dbfilename");
|
||||
|
||||
uint32_t shard_num = GetFlag(FLAGS_num_shards);
|
||||
if (shard_num == 0 || shard_num > pp_.size()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue