diff --git a/tools/ldb_cmd.cc b/tools/ldb_cmd.cc index 61b6b17f7..5c9f363a7 100644 --- a/tools/ldb_cmd.cc +++ b/tools/ldb_cmd.cc @@ -315,7 +315,7 @@ void LDBCommand::OpenDB() { if (!create_if_missing_ && try_load_options_) { Status s = LoadLatestOptions(db_path_, Env::Default(), &options_, &column_families_, ignore_unknown_options_); - if (!s.ok()) { + if (!s.ok() && !s.IsNotFound()) { // Option file exists but load option file error. std::string msg = s.ToString(); exec_state_ = LDBCommandExecuteResult::Failed(msg);