summaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
authorleveldb Team <no-reply@google.com>2019-12-03 13:15:21 -0800
committerVictor Costan <pwnall@chromium.org>2020-01-09 09:17:59 -0800
commitd152b23f3b787f67a0ac3a40498e13831f3778d7 (patch)
tree1355aa3aa56b9abc890fc001e8f5521ec984b790 /benchmarks
parent58a89bbcb28d02d5704c5fff7aeb6e72f7ca2431 (diff)
downloadleveldb-d152b23f3b787f67a0ac3a40498e13831f3778d7.tar.gz
Defend against inclusion of windows.h in tests that invoke
Env::DeleteFile. PiperOrigin-RevId: 283607548
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/db_bench.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/benchmarks/db_bench.cc b/benchmarks/db_bench.cc
index 3696023..397e23f 100644
--- a/benchmarks/db_bench.cc
+++ b/benchmarks/db_bench.cc
@@ -18,6 +18,11 @@
#include "util/random.h"
#include "util/testutil.h"
+#if defined(_WIN32) && defined(DeleteFile)
+// See rationale in env.h
+#undef DeleteFile
+#endif
+
// Comma-separated list of operations to run in the specified order
// Actual benchmarks:
// fillseq -- write N values in sequential key order in async mode