diff --git a/db/db_impl.cc b/db/db_impl.cc index dde3711..88d17e7 100644 --- a/db/db_impl.cc +++ b/db/db_impl.cc @@ -1427,7 +1427,7 @@ Status DestroyDB(const std::string& dbname, const Options& options) { FileType type; for (size_t i = 0; i < filenames.size(); i++) { if (ParseFileName(filenames[i], &number, &type) && - filenames[i] != lockname) { // Lock file will be deleted at end + type != kDBLockFile) { // Lock file will be deleted at end Status del = env->DeleteFile(dbname + "/" + filenames[i]); if (result.ok() && !del.ok()) { result = del;