Skip to content

Commit

Permalink
Ignore case on the dbsize cmd (#2206)
Browse files Browse the repository at this point in the history
Co-authored-by: hulk <hulk.website@gmail.com>
Co-authored-by: Myth <caipengbo@outlook.com>
  • Loading branch information
3 people authored Mar 30, 2024
1 parent 1af42d7 commit a59eac9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/cmd_server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit a59eac9

Please sign in to comment.