From: Marek VavruĊĦa Date: Thu, 12 Nov 2015 16:54:17 +0000 (+0100) Subject: daemon: use writemap to work around latency when busy X-Git-Tag: v1.0.0-beta2~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c00a475705226de99edf585effe53781c7cfea6b;p=thirdparty%2Fknot-resolver.git daemon: use writemap to work around latency when busy --- diff --git a/daemon/engine.c b/daemon/engine.c index a874a9183..af457bceb 100644 --- a/daemon/engine.c +++ b/daemon/engine.c @@ -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; }