]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/SearchIdxShard.pm
searchidxshard: call DS->Reset at worker start
[public-inbox.git] / lib / PublicInbox / SearchIdxShard.pm
index 87b0bad62ed2ab5ae47f138460fd9730e4e9d255..a41477cd2e5295879769e408138e16189babff67 100644 (file)
@@ -34,6 +34,7 @@ sub spawn_worker {
        my $pid = fork;
        defined $pid or die "fork failed: $!\n";
        if ($pid == 0) {
+               eval { PublicInbox::DS->Reset };
                # these signals are localized in parent
                $SIG{$_} = 'IGNORE' for (qw(TERM INT QUIT));
                PublicInbox::Sigfd::sig_setmask($oldset);