Re: [DRAFT 0/1] lib: replace some uses of Query::MatchAll with a thread-safe alternative

2023-02-26 Thread David Bremner
Kevin Boulain writes: > > Thoughts? Should clients using the library gate every function call to > Notmuch behind a lock instead? Ideally that should not be necessary. On the other hand, it may take some time to fix issues with concurrent access. > I can also start a discussion in sfsexp's

[DRAFT 0/1] lib: replace some uses of Query::MatchAll with a thread-safe alternative

2023-02-25 Thread Kevin Boulain
Hey, Here's a draft patch previously discussed in https://nmbug.notmuchmail.org/nmweb/show/87ilfvq3bc.fsf%40boula.in See the commit's message for more information. Unfortunaly this only covers two third of the usages of Xapian::Query::MatchAll, in lib/query.cc and lib/regexp-fields.cc.