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:
parent
dd336120b2
commit
b81c950056
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue