You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kvrocks.apache.org by tw...@apache.org on 2024/10/26 05:42:12 UTC
(kvrocks) branch unstable updated: fix(command): wrong key range in commands: DISK/MEMORY/DUMP (#2623)
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 c4664b1a fix(command): wrong key range in commands: DISK/MEMORY/DUMP (#2623)
c4664b1a is described below
commit c4664b1ab3f79196bb043fe2675305fcc57a1278
Author: hulk <hu...@gmail.com>
AuthorDate: Sat Oct 26 13:42:06 2024 +0800
fix(command): wrong key range in commands: DISK/MEMORY/DUMP (#2623)
---
src/commands/cmd_server.cc | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/commands/cmd_server.cc b/src/commands/cmd_server.cc
index 725b28d0..54c22980 100644
--- a/src/commands/cmd_server.cc
+++ b/src/commands/cmd_server.cc
@@ -1352,8 +1352,8 @@ REDIS_REGISTER_COMMANDS(Server, MakeCmdAttr<CommandAuth>("auth", 2, "read-only o
MakeCmdAttr<CommandCommand>("command", -1, "read-only", NO_KEY),
MakeCmdAttr<CommandEcho>("echo", 2, "read-only", NO_KEY),
MakeCmdAttr<CommandTime>("time", 1, "read-only ok-loading", NO_KEY),
- MakeCmdAttr<CommandDisk>("disk", 3, "read-only", NO_KEY),
- MakeCmdAttr<CommandMemory>("memory", 3, "read-only", NO_KEY),
+ MakeCmdAttr<CommandDisk>("disk", 3, "read-only", 2, 2, 1),
+ MakeCmdAttr<CommandMemory>("memory", 3, "read-only", 2, 2, 1),
MakeCmdAttr<CommandHello>("hello", -1, "read-only ok-loading", NO_KEY),
MakeCmdAttr<CommandRestore>("restore", -4, "write", 1, 1, 1),
@@ -1366,6 +1366,6 @@ REDIS_REGISTER_COMMANDS(Server, MakeCmdAttr<CommandAuth>("auth", 2, "read-only o
MakeCmdAttr<CommandRdb>("rdb", -3, "write exclusive", NO_KEY),
MakeCmdAttr<CommandReset>("reset", 1, "ok-loading multi no-script pub-sub", NO_KEY),
MakeCmdAttr<CommandApplyBatch>("applybatch", -2, "write no-multi", NO_KEY),
- MakeCmdAttr<CommandDump>("dump", 2, "read-only", NO_KEY),
+ MakeCmdAttr<CommandDump>("dump", 2, "read-only", 1, 1, 1),
MakeCmdAttr<CommandPollUpdates>("pollupdates", -2, "read-only", NO_KEY), )
} // namespace redis