https://bugs.kde.org/show_bug.cgi?id=434926

--- Comment #6 from Bernie Innocenti <[email protected]> ---
Perhaps relevant (but only if Baloo uses LMDB from multiple threads):

  Threads and Processes
  LMDB uses POSIX locks on files, and these locks have issues if one process
opens a file multiple times. Because of this, do not mdb_env_open() a file
multiple times from a single process. Instead, share the LMDB environment that
has opened the file across all threads. Otherwise, if a single process opens
the same environment multiple times, closing it once will remove all the locks
held on it, and the other instances will be vulnerable to corruption from other
processes.
  Also note that a transaction is tied to one thread by default using Thread
Local Storage. If you want to pass read-only transactions across threads, you
can use the MDB_NOTLS option on the environment.

Source: http://www.lmdb.tech/doc/starting.html

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to