This is an automated email from the ASF dual-hosted git repository.
caipengbo 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 a59eac91 Ignore case on the dbsize cmd (#2206)
a59eac91 is described below
commit a59eac91048700e8df2c398b6603ffaaf5ed0406
Author: anotherJJz <[email protected]>
AuthorDate: Sat Mar 30 10:01:30 2024 +0800
Ignore case on the dbsize cmd (#2206)
Co-authored-by: hulk <[email protected]>
Co-authored-by: Myth <[email protected]>
---
src/commands/cmd_server.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/commands/cmd_server.cc b/src/commands/cmd_server.cc
index a1e878bd..481f3f59 100644
--- a/src/commands/cmd_server.cc
+++ b/src/commands/cmd_server.cc
@@ -331,7 +331,7 @@ class CommandDBSize : public Commander {
KeyNumStats stats;
srv->GetLatestKeyNumStats(ns, &stats);
*output = redis::Integer(stats.n_key);
- } else if (args_.size() == 2 && args_[1] == "scan") {
+ } else if (args_.size() == 2 && util::EqualICase(args_[1], "scan")) {
Status s = srv->AsyncScanDBSize(ns);
if (s.IsOK()) {
*output = redis::SimpleString("OK");