diff options
author | Sanjay Ghemawat <sanjay@google.com> | 2012-03-09 07:51:04 -0800 |
---|---|---|
committer | Sanjay Ghemawat <sanjay@google.com> | 2012-03-09 07:51:04 -0800 |
commit | 583f1499c00ff40f332149021f583cf6ee78dd7e (patch) | |
tree | 7dabbddc340eff2e2eadae0b7b72647e1c127263 /db | |
parent | d79762e27369365a7ffe1f2e3a5c64b0632079e1 (diff) | |
download | leveldb-583f1499c00ff40f332149021f583cf6ee78dd7e.tar.gz |
fix LOCK file deletion to prevent crash on windows
Diffstat (limited to 'db')
-rw-r--r-- | db/db_impl.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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; |