]> Sergey Matveev's repositories - public-inbox.git/commit
searchidxshard: reuse $SIG{__WARN__} callback from Admin
authorEric Wong <e@80x24.org>
Sun, 3 Nov 2019 06:48:58 +0000 (06:48 +0000)
committerEric Wong <e@80x24.org>
Sun, 3 Nov 2019 06:49:50 +0000 (06:49 +0000)
commit17d2778c404c25c459f320a7f92913d17569fc59
tree48ae0dddf6acd5f8c3434119cbafd62ac881d575
parent4821798351defce82c102e46d6f5f84f0cdc0e34
searchidxshard: reuse $SIG{__WARN__} callback from Admin

We don't want to define $SIG{__WARN__} in the worker to call an
existing non-default callback.  Instead update ->{current_info}
the same way the V2Writable master process does.

I noticed this while reindexing with a large XAPIAN_FLUSH_THRESHOLD
and seeing the wrong epoch on my terminal from a shard because the
shard worker was spawned while reindexing a higher-numbered epoch.
lib/PublicInbox/SearchIdxShard.pm