]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
searchidxshard: improve comment wording
authorEric Wong <e@80x24.org>
Tue, 21 Mar 2023 23:07:24 +0000 (23:07 +0000)
committerEric Wong <e@80x24.org>
Sat, 25 Mar 2023 09:37:47 +0000 (09:37 +0000)
Just something I noticed while considering using this package
for CodeSearchIdx.

lib/PublicInbox/SearchIdxShard.pm

index 000abd9413b5ba5159f2d540f8344805564c6ad9..831be51b87c54377f1dfbb4b00ab986606f1bd96 100644 (file)
@@ -1,11 +1,10 @@
-# Copyright (C) 2018-2021 all contributors <meta@public-inbox.org>
+# Copyright (C) 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.
 # See L<public-inbox-v2-format(5)> for more info on how we shard Xapian
 package PublicInbox::SearchIdxShard;
-use strict;
-use v5.10.1;
+use v5.12;
 use parent qw(PublicInbox::SearchIdx PublicInbox::IPC);
 use PublicInbox::OnDestroy;
 
@@ -47,7 +46,7 @@ sub ipc_atfork_child { # called automatically before ipc_worker_loop
        $v2w->atfork_child; # calls ipc_sibling_atfork_child on our siblings
        $v2w->{current_info} = "[$self->{shard}]"; # for $SIG{__WARN__}
        $self->begin_txn_lazy;
-       # caller must capture this:
+       # caller (ipc_worker_spawn) must capture this:
        PublicInbox::OnDestroy->new($$, \&_worker_done, $self);
 }