Skip to content

Commit

Permalink
fix: modify the function name from "GetFlushDname" to "GetFlushDBname" (
Browse files Browse the repository at this point in the history
#2553)

* Update pika_admin.h
  • Loading branch information
euvre authored and brother-jin committed Apr 7, 2024
1 parent b63a69d commit f70771f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/pika_admin.h
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ class FlushdbCmd : public Cmd {
Cmd* Clone() override { return new FlushdbCmd(*this); }
void FlushAllDBsWithoutLock();
void Execute() override;
std::string GetFlushDname() { return db_name_; }
std::string GetFlushDBname() { return db_name_; }

private:
std::string db_name_;
Expand Down
2 changes: 1 addition & 1 deletion src/pika_client_conn.cc
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ std::shared_ptr<Cmd> PikaClientConn::DoCmd(const PikaCmdArgsType& argv, const st
if (c_ptr->res().ok() && c_ptr->is_write() && name() != kCmdNameExec) {
if (c_ptr->name() == kCmdNameFlushdb) {
auto flushdb = std::dynamic_pointer_cast<FlushdbCmd>(c_ptr);
SetTxnFailedFromDBs(flushdb->GetFlushDname());
SetTxnFailedFromDBs(flushdb->GetFlushDBname());
} else if (c_ptr->name() == kCmdNameFlushall) {
SetAllTxnFailed();
} else {
Expand Down

0 comments on commit f70771f

Please sign in to comment.