]> Sergey Matveev's repositories - public-inbox.git/commit
xapcmd: increase scope of lock
authorEric Wong <e@yhbt.net>
Sun, 26 Jan 2020 01:17:44 +0000 (01:17 +0000)
committerEric Wong <e@yhbt.net>
Mon, 27 Jan 2020 02:58:09 +0000 (02:58 +0000)
commitf5f7508636e5ecc4dcc2ecb18c6efc8c67e778f8
treedac4910ac94dd17c0ed4ad31607ab862520c4e64
parent7c5ac90b309bbe76468055e8a9289664ef2dfe37
xapcmd: increase scope of lock

The old lock scope was only sufficient for protecting against
concurrent modifications from the common -mda, -watch, or -learn
writers.

It was not sufficient for protecting against parallel -compact
or -xcpdb invocations from eager admins.  Most of the time this
only leads to confusing and misleading warning messages, but
parallel xcpdb --reshard could lead to errors.
lib/PublicInbox/Xapcmd.pm