mu-indexer: re-enable database lock

Seeing some db corruption; re-enabling this (old) lock to see if it
helps. It _does_ slow down indexing significantly.
This commit is contained in:
Dirk-Jan C. Binnema 2024-04-10 19:03:16 +03:00
parent 9a1b30b47e
commit 4938d98f76
1 changed files with 2 additions and 1 deletions

View File

@ -242,8 +242,9 @@ Indexer::Private::add_message(const std::string& path)
* but it believed those are _false alarms_
* https://gitlab.gnome.org/GNOME/glib/-/issues/2662
*
* std::unique_lock lock{w_lock_};
* For now, set the lock as we were seeing some db corruption.
*/
std::unique_lock lock{w_lock_};
auto msg{Message::make_from_path(path, store_.message_options())};
if (!msg) {
mu_warning("failed to create message from {}: {}", path, msg.error().what());