diff options
author | sanjay@google.com <sanjay@google.com@62dab493-f737-651d-591e-8d6aee1b9529> | 2012-03-09 15:53:05 +0000 |
---|---|---|
committer | sanjay@google.com <sanjay@google.com@62dab493-f737-651d-591e-8d6aee1b9529> | 2012-03-09 15:53:05 +0000 |
commit | f168d0177b095ac7a608f6aafb9efc96976b6b3c (patch) | |
tree | 7dabbddc340eff2e2eadae0b7b72647e1c127263 | |
parent | 13daa9f29c999ee40a257ee0775abee2c78a0ad9 (diff) | |
download | src-f168d0177b095ac7a608f6aafb9efc96976b6b3c.tar.gz |
fix LOCK file deletion to prevent crash on windows
git-svn-id: http://leveldb.googlecode.com/svn/trunk@61 62dab493-f737-651d-591e-8d6aee1b9529
-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; |