Skip to content

Commit

Permalink
removed duplicated logic
Browse files Browse the repository at this point in the history
  • Loading branch information
cheniujh committed Jul 16, 2024
1 parent 52e14ee commit 66daa77
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/pika_admin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -642,13 +642,6 @@ bool FlushdbCmd::DoWithoutLock() {
res_.SetRes(CmdRes::kErrOther, db_->GetDBName() + " Flushdb, but DB not found");
return false;
}
if (db_name_ != "all") {
//Floyd does not support flushdb by type
LOG(ERROR) << "cannot flushdb by type in floyd";
res_.SetRes(CmdRes::kInvalidParameter, "cannot flushdb by type in floyd");
return false;
}

return db_->FlushDBWithoutLock();
}

Expand Down

0 comments on commit 66daa77

Please sign in to comment.