From: Nico Cartron Date: Fri, 10 May 2019 10:08:50 +0000 (+0200) Subject: Specified that mapasync is the default mode for lmdb-sync-mode X-Git-Tag: rec-4.2.0-rc1~23^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7055fa2067a1270aadb0e48c79c36c5923247e6d;p=pdns Specified that mapasync is the default mode for lmdb-sync-mode --- diff --git a/docs/backends/lmdb.rst b/docs/backends/lmdb.rst index 5169fbda7..034618312 100644 --- a/docs/backends/lmdb.rst +++ b/docs/backends/lmdb.rst @@ -46,12 +46,13 @@ Default is 2 on 32 bits systems, and 64 on 64 bits systems. ^^^^^^^^^^^^^^^^^ Synchronisation mode: sync, nosync, nometasync, mapasync +Default: mapasync * ``sync``: LMDB synchronous mode. Safest option, but also slightly slower. Can also be enabled with ``lmdb-sync-mode=`` * ``nosync``: don't flush systems buffers to disk when committing a transation. This means a system crash can corrupt the database or lose the last transactions if buffers are not yet flushed to disk. * ``nometasync``: flush system buffers to disk only once per transaction, omit the metadata flush. This maintains database integrity, but can potentially lose the last committed transaction if the operating system crashes. -* ``mapasync``: use asynchronous flushes to disk. As with nosync, a system crash can then corrupt the database or lose the last transactions. +* ``mapasync``: (default). Use asynchronous flushes to disk. As with nosync, a system crash can then corrupt the database or lose the last transactions. LMDB Structure