diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-05-05 10:42:28 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-05-05 10:42:28 +0200 |
commit | 8eab2b67fdf83c657f996debfc238703a78b337b (patch) | |
tree | af23c674490c9e05c281ecd56b3e439f32229795 /common | |
parent | 4bc39b1b771aaf9ae5f7c96aeaddb06f2bd101ac (diff) | |
download | sink-8eab2b67fdf83c657f996debfc238703a78b337b.tar.gz sink-8eab2b67fdf83c657f996debfc238703a78b337b.zip |
Don't leak transactions when copying them.
Previsouly we would hit the maxreaders limit
Diffstat (limited to 'common')
-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 e3685a5..cb7bca4 100644 --- a/common/storage_lmdb.cpp +++ b/common/storage_lmdb.cpp | |||
@@ -563,6 +563,7 @@ DataStore::Transaction::Transaction(Transaction &&other) : d(nullptr) | |||
563 | DataStore::Transaction &DataStore::Transaction::operator=(DataStore::Transaction &&other) | 563 | DataStore::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; |