summaryrefslogtreecommitdiffstats
path: root/common/storage_lmdb.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-05-05 10:42:28 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-05-05 10:42:28 +0200
commit8eab2b67fdf83c657f996debfc238703a78b337b (patch)
treeaf23c674490c9e05c281ecd56b3e439f32229795 /common/storage_lmdb.cpp
parent4bc39b1b771aaf9ae5f7c96aeaddb06f2bd101ac (diff)
downloadsink-8eab2b67fdf83c657f996debfc238703a78b337b.tar.gz
sink-8eab2b67fdf83c657f996debfc238703a78b337b.zip
Don't leak transactions when copying them.
Previsouly we would hit the maxreaders limit
Diffstat (limited to 'common/storage_lmdb.cpp')
-rw-r--r--common/storage_lmdb.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/storage_lmdb.cpp b/common/storage_lmdb.cpp
index e3685a5..cb7bca4 100644
--- a/common/storage_lmdb.cpp
+++ b/common/storage_lmdb.cpp
@@ -563,6 +563,7 @@ DataStore::Transaction::Transaction(Transaction &&other) : d(nullptr)
563DataStore::Transaction &DataStore::Transaction::operator=(DataStore::Transaction &&other) 563DataStore::Transaction &DataStore::Transaction::operator=(DataStore::Transaction &&other)
564{ 564{
565 if (&other != this) { 565 if (&other != this) {
566 abort();
566 delete d; 567 delete d;
567 d = other.d; 568 d = other.d;
568 other.d = nullptr; 569 other.d = nullptr;