mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 02:15:45 +02:00
feat(AclFamilly): add acl list command (#1722)
* Add acl-family source and header * Add `ACL LIST` command * Add a simple test to check the default user
This commit is contained in:
parent
eae02a16da
commit
898061d738
16 changed files with 234 additions and 39 deletions
|
@ -6,6 +6,8 @@
|
|||
|
||||
#include <mimalloc.h>
|
||||
|
||||
#include "server/acl/user_registry.h"
|
||||
|
||||
extern "C" {
|
||||
#include "redis/zmalloc.h"
|
||||
}
|
||||
|
@ -60,10 +62,11 @@ ServerState::ServerState() : interpreter_mgr_{absl::GetFlag(FLAGS_interpreter_pe
|
|||
ServerState::~ServerState() {
|
||||
}
|
||||
|
||||
void ServerState::Init(uint32_t thread_index) {
|
||||
void ServerState::Init(uint32_t thread_index, acl::UserRegistry* registry) {
|
||||
state_ = new ServerState();
|
||||
state_->gstate_ = GlobalState::ACTIVE;
|
||||
state_->thread_index_ = thread_index;
|
||||
state_->user_registry = registry;
|
||||
}
|
||||
|
||||
void ServerState::Destroy() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue