mirror of https://github.com/djcb/mu.git
store: don't try to commit when there's no transaction
Avoids some error warning.
This commit is contained in:
parent
1a449dd885
commit
672d0c7238
|
@ -186,8 +186,10 @@ struct Store::Private {
|
||||||
dirtiness_ = 0;
|
dirtiness_ = 0;
|
||||||
if (mdata_.in_memory)
|
if (mdata_.in_memory)
|
||||||
return; // not supported in the in-memory backend.
|
return; // not supported in the in-memory backend.
|
||||||
writable_db().commit_transaction();
|
if (in_transaction_)
|
||||||
|
writable_db().commit_transaction();
|
||||||
writable_db().begin_transaction();
|
writable_db().begin_transaction();
|
||||||
|
in_transaction_ = true;
|
||||||
} MU_XAPIAN_CATCH_BLOCK;
|
} MU_XAPIAN_CATCH_BLOCK;
|
||||||
|
|
||||||
void add_synonyms () {
|
void add_synonyms () {
|
||||||
|
|
Loading…
Reference in New Issue