diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-01-11 16:08:36 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-01-11 16:08:36 +0100 |
commit | c95980b7845b4295070be3271519dc3b844422c8 (patch) | |
tree | daa6dd804fa0062a7abcaf3895817957b3cb7e28 /common/storage_lmdb.cpp | |
parent | a638278ede2d7af9a073da6ca11ba2efee2a934b (diff) | |
download | sink-c95980b7845b4295070be3271519dc3b844422c8.tar.gz sink-c95980b7845b4295070be3271519dc3b844422c8.zip |
Fixed turning read transactions into write transactions.
Diffstat (limited to 'common/storage_lmdb.cpp')
-rw-r--r-- | common/storage_lmdb.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/storage_lmdb.cpp b/common/storage_lmdb.cpp index 42e3d33..ce271ad 100644 --- a/common/storage_lmdb.cpp +++ b/common/storage_lmdb.cpp | |||
@@ -160,6 +160,7 @@ bool Storage::startTransaction(AccessMode type) | |||
160 | } | 160 | } |
161 | 161 | ||
162 | d->firstOpen = false; | 162 | d->firstOpen = false; |
163 | d->readTransaction = requestedRead; | ||
163 | return !rc; | 164 | return !rc; |
164 | } | 165 | } |
165 | 166 | ||