]> Sergey Matveev's repositories - public-inbox.git/commit
lei: safety fix for multiple WQ classes
authorEric Wong <e@80x24.org>
Tue, 8 Jun 2021 09:50:19 +0000 (09:50 +0000)
committerEric Wong <e@80x24.org>
Tue, 8 Jun 2021 16:50:46 +0000 (16:50 +0000)
commit11cf6468df48b9b9f34018cce1d20dc773322f2c
tree0408ade713d13a12a40353aa136209490925ce96
parentb922651ca3126510178eb9de244b66829e799853
lei: safety fix for multiple WQ classes

For commands utilizing multiple workers, this simple change
generalizes the persistence mechanism and and prevents
lei->dclose from causing script/lei to exit if there are
still in-flight workers.

This ougth to prevent read-after-write consistency problems that
occasionally manifest in scripts (e.g. test cases) but usually
go unnoticed in normal use.
lib/PublicInbox/LEI.pm