]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
daemon: use writemap to work around latency when busy
authorMarek Vavruša <marek.vavrusa@nic.cz>
Thu, 12 Nov 2015 16:54:17 +0000 (17:54 +0100)
committerMarek Vavruša <marek.vavrusa@nic.cz>
Thu, 12 Nov 2015 16:54:17 +0000 (17:54 +0100)
daemon/engine.c

index a874a918318266fac8664431550497085f3f54c9..af457bcebb39eaca78e5ecc52d790ed21265ba09 100644 (file)
@@ -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;
 }