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:
Kostas Kyrimis 2023-08-22 18:33:14 +03:00 committed by GitHub
parent eae02a16da
commit 898061d738
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 234 additions and 39 deletions

View file

@ -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() {