]> granicus.if.org Git - pdns/commit
Properly lock lmdb database, fixes #1954
authorAki Tuomi <cmouse@desteem.org>
Tue, 24 Feb 2015 09:53:42 +0000 (11:53 +0200)
committerAki Tuomi <cmouse@desteem.org>
Thu, 5 Mar 2015 16:01:43 +0000 (18:01 +0200)
commitc40307b09985cf8e109f0567a9c5c7f5b556d228
tree6ec44cd3cec47bd21f23cd29c47011befa5fe391
parent654d9e00cbad74a96ed10728bfa66f3d32de5a9a
Properly lock lmdb database, fixes #1954

The LMDB database needs to be reloaded without allowing requests, so
we use readwrite lock to ensure that this cannot happen.
modules/lmdbbackend/lmdbbackend.cc
modules/lmdbbackend/lmdbbackend.hh