File 0008-Transaction-not-created-don-t-try-to-abort-them.patch of Package baloo5

From 54f7363048c7db41f63c85f637911a5598c30e9e Mon Sep 17 00:00:00 2001
From: Christoph Cullmann <cullmann@kde.org>
Date: Sun, 11 Sep 2016 21:10:58 +0200
Subject: [PATCH 08/13] Transaction not created => don't try to abort them

REVIEW: 128891
---
 src/engine/database.cpp | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/engine/database.cpp b/src/engine/database.cpp
index 6a433c7..37b8e97 100644
--- a/src/engine/database.cpp
+++ b/src/engine/database.cpp
@@ -139,7 +139,6 @@ bool Database::open(OpenMode mode)
         int rc = mdb_txn_begin(m_env, NULL, MDB_RDONLY, &txn);
         Q_ASSERT_X(rc == 0, "Database::transaction ro begin", mdb_strerror(rc));
         if (rc) {
-            mdb_txn_abort(txn);
             mdb_env_close(m_env);
             m_env = nullptr;
             return false;
@@ -182,7 +181,6 @@ bool Database::open(OpenMode mode)
         int rc = mdb_txn_begin(m_env, NULL, 0, &txn);
         Q_ASSERT_X(rc == 0, "Database::transaction begin", mdb_strerror(rc));
         if (rc) {
-            mdb_txn_abort(txn);
             mdb_env_close(m_env);
             m_env = nullptr;
             return false;
-- 
2.10.0