From b81c950056802acad7f57c612d069f0ed7c6d842 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Wed, 23 Mar 2016 07:42:28 -0700 Subject: [PATCH] Put the fuzzer realm file in the working directory mkstemp() eventually becomes a bottleneck due to thousands of stale files from crashes. --- fuzzer/fuzzer.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fuzzer/fuzzer.cpp b/fuzzer/fuzzer.cpp index e3572769..72be0dca 100644 --- a/fuzzer/fuzzer.cpp +++ b/fuzzer/fuzzer.cpp @@ -201,9 +201,7 @@ int main(int argc, char** argv) { realm::disable_sync_to_disk(); Realm::Config config; - config.path = getenv("TMPDIR"); - config.path += "/realm.XXXXXX"; - mktemp(&config.path[0]); + config.path = "fuzzer.realm"; config.cache = false; config.in_memory = true; config.automatic_change_notifications = false;