Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP1:Update
baloo5
Fix-regression-when-opening-DB-in-read-write-mo...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File Fix-regression-when-opening-DB-in-read-write-mode.patch of Package baloo5
From 57b9e32ff6c815e48826f92b24db22659ab34782 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Br=C3=BCns?= <stefan.bruens@rwth-aachen.de> Date: Wed, 20 Mar 2019 02:48:18 +0100 Subject: Fix regression when opening DB in read-write mode Commit eb68430ae5f4 ("Baloo engine: treat every non-success code as a failure") introduced a regression, afterwards any attempt to open the DB in read-write mode would fail, as the abort/close/return ended up in an unconditional scope. CCBUG: 405317 --- src/engine/database.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/database.cpp b/src/engine/database.cpp index 3bc29e2..c527144 100644 --- a/src/engine/database.cpp +++ b/src/engine/database.cpp @@ -206,8 +206,8 @@ bool Database::open(OpenMode mode) m_dbis.mtimeDbi = MTimeDB::create(txn); - if (!m_dbis.isValid()) - qCWarning(ENGINE) << "dbis is invalid";{ + if (!m_dbis.isValid()) { + qCWarning(ENGINE) << "dbis is invalid"; mdb_txn_abort(txn); mdb_env_close(m_env); m_env = nullptr; -- cgit v1.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor