Put the fuzzer realm file in the working directory

mkstemp() eventually becomes a bottleneck due to thousands of stale
files from crashes.
This commit is contained in:
Thomas Goyne 2016-03-23 07:42:28 -07:00 committed by Thomas Goyne
parent dd336120b2
commit b81c950056
1 changed files with 1 additions and 3 deletions

View File

@ -201,9 +201,7 @@ int main(int argc, char** argv) {
realm::disable_sync_to_disk(); realm::disable_sync_to_disk();
Realm::Config config; Realm::Config config;
config.path = getenv("TMPDIR"); config.path = "fuzzer.realm";
config.path += "/realm.XXXXXX";
mktemp(&config.path[0]);
config.cache = false; config.cache = false;
config.in_memory = true; config.in_memory = true;
config.automatic_change_notifications = false; config.automatic_change_notifications = false;