summaryrefslogtreecommitdiffstats
path: root/dist
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-02-27 22:19:21 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-02-27 22:50:23 +0100
commit1b31818b3cd48be19e2e29eefe91ecec2cbb69e2 (patch)
tree1c245ae319dc8b99ed62e04d4f1b2f6cc399de24 /dist
parentc51f447a476b1f5c3781bcea0ad19e969ba7564e (diff)
downloadsink-1b31818b3cd48be19e2e29eefe91ecec2cbb69e2.tar.gz
sink-1b31818b3cd48be19e2e29eefe91ecec2cbb69e2.zip
Make opening dbis non-racy
Dbis can only be opened by one thread and should then be shared accross all threads after committing the transaction to create the dbi. This requires us to initially open all db's, which in turn requires us to know the correct flags. This patch stores the flags to open each db in a separate db, and then opens up all databases on initial start. If a new database is created that dbi is as well shared as soon as the transaction is committed (before the dbi is private to the transaction).
Diffstat (limited to 'dist')
0 files changed, 0 insertions, 0 deletions