This is an automated email from the ASF dual-hosted git repository.
twice pushed a commit to branch unstable
in repository https://gitbox.apache.org/repos/asf/kvrocks.git
The following commit(s) were added to refs/heads/unstable by this push:
new c7b6b22e fix(cmd): add exclusive flag to FLUSHDB/FLUSHALL (#2624)
c7b6b22e is described below
commit c7b6b22efa25e31bab88f338073fa648e261833c
Author: Twice <[email protected]>
AuthorDate: Sat Oct 26 20:13:19 2024 +0800
fix(cmd): add exclusive flag to FLUSHDB/FLUSHALL (#2624)
---
src/commands/cmd_server.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/commands/cmd_server.cc b/src/commands/cmd_server.cc
index 54c22980..3d98a5f5 100644
--- a/src/commands/cmd_server.cc
+++ b/src/commands/cmd_server.cc
@@ -1337,8 +1337,8 @@ REDIS_REGISTER_COMMANDS(Server,
MakeCmdAttr<CommandAuth>("auth", 2, "read-only o
MakeCmdAttr<CommandConfig>("config", -2, "read-only",
NO_KEY, GenerateConfigFlag),
MakeCmdAttr<CommandNamespace>("namespace", -3,
"read-only", NO_KEY),
MakeCmdAttr<CommandKeys>("keys", 2, "read-only slow",
NO_KEY),
- MakeCmdAttr<CommandFlushDB>("flushdb", 1, "write
no-dbsize-check", NO_KEY),
- MakeCmdAttr<CommandFlushAll>("flushall", 1, "write
no-dbsize-check", NO_KEY),
+ MakeCmdAttr<CommandFlushDB>("flushdb", 1, "write
no-dbsize-check exclusive", NO_KEY),
+ MakeCmdAttr<CommandFlushAll>("flushall", 1, "write
no-dbsize-check exclusive", NO_KEY),
MakeCmdAttr<CommandDBSize>("dbsize", -1, "read-only",
NO_KEY),
MakeCmdAttr<CommandSlowlog>("slowlog", -2,
"read-only", NO_KEY),
MakeCmdAttr<CommandPerfLog>("perflog", -2,
"read-only", NO_KEY),