]> Sergey Matveev's repositories - public-inbox.git/commit
lei_store: fix locking w.r.t epoch creation
authorEric Wong <e@80x24.org>
Thu, 29 Apr 2021 19:49:57 +0000 (19:49 +0000)
committerEric Wong <e@80x24.org>
Fri, 30 Apr 2021 06:41:37 +0000 (06:41 +0000)
commit6c7b884068318011af6f8382a023befa815643c3
tree349c2e1939d00ee285a3fae9cf1ccc735c10ed4e
parentdc82a4a2af4c8c2e34cdbd56e07f097dff5c9a78
lei_store: fix locking w.r.t epoch creation

Prior to this change, it was possible for oneshot lei processes
to race on epoch creation/rollover.  lei-daemon normally
prevents the problem by funnelling all writes to a single
socket, but oneshot lei has no such protection.
lib/PublicInbox/ExtSearchIdx.pm
lib/PublicInbox/LeiStore.pm