diff --git a/src/pika_admin.cc b/src/pika_admin.cc index dc3b79fd45..04f9bbbf5c 100644 --- a/src/pika_admin.cc +++ b/src/pika_admin.cc @@ -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(); }