diff --git a/lib/mu-store.cc b/lib/mu-store.cc index 550d3ce2..56861d39 100644 --- a/lib/mu-store.cc +++ b/lib/mu-store.cc @@ -647,6 +647,8 @@ Store::commit() void Store::index_complete() { + std::lock_guard lock{priv_->lock_}; + g_debug("marking index complete"); priv_->writable_db().set_metadata(IndexedKey, tstamp_to_string(::time({}))); }