summaryrefslogtreecommitdiff
path: root/db/filename.cc
diff options
context:
space:
mode:
Diffstat (limited to 'db/filename.cc')
-rw-r--r--db/filename.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/filename.cc b/db/filename.cc
index 85de45c..9b451fc 100644
--- a/db/filename.cc
+++ b/db/filename.cc
@@ -133,7 +133,7 @@ Status SetCurrentFile(Env* env, const std::string& dbname,
s = env->RenameFile(tmp, CurrentFileName(dbname));
}
if (!s.ok()) {
- env->DeleteFile(tmp);
+ env->RemoveFile(tmp);
}
return s;
}