]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/SearchIdxShard.pm
update copyrights for 2021
[public-inbox.git] / lib / PublicInbox / SearchIdxShard.pm
index 87b0bad62ed2ab5ae47f138460fd9730e4e9d255..45240e0793a8867e272005d386712e81004af803 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2018-2020 all contributors <meta@public-inbox.org>
+# Copyright (C) 2018-2021 all contributors <meta@public-inbox.org>
 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
 
 # Internal interface for a single Xapian shard in V2 inboxes.
@@ -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);