Commit c00a4757 authored by Marek Vavruša's avatar Marek Vavruša

daemon: use writemap to work around latency when busy

parent 0497be24
......@@ -317,6 +317,7 @@ void *namedb_lmdb_mkopts(const char *conf, size_t maxsize)
memset(opts, 0, sizeof(*opts));
opts->path = (conf && strlen(conf)) ? conf : ".";
opts->mapsize = maxsize;
opts->flags.env = 0x80000 | 0x40000; /* MDB_WRITEMAP | MDB_NOMETASYNC */
}
return opts;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment