about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-04-03 10:48:23 +0000
committerEric Wong <e@80x24.org>2021-04-03 18:38:44 +0000
commit56c97e69cc917028a52b7144867520931250297d (patch)
treeaf2639bcc7816a80599b569d89dd8c9cc824b0a7
parentcc276aa9548186cd82b59cd2c8d178010ab8c79d (diff)
downloadpublic-inbox-56c97e69cc917028a52b7144867520931250297d.tar.gz
We'll just let the ExtSearchIdx code handle this uncommon case
by doing a full commit.
-rw-r--r--lib/PublicInbox/LeiStore.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/PublicInbox/LeiStore.pm b/lib/PublicInbox/LeiStore.pm
index d2dd4e7b..87082638 100644
--- a/lib/PublicInbox/LeiStore.pm
+++ b/lib/PublicInbox/LeiStore.pm
@@ -79,7 +79,10 @@ sub importer {
                 my $old = -e $latest;
                 PublicInbox::Import::init_bare($latest);
                 my $git = PublicInbox::Git->new($latest);
-                $git->qx(qw(config core.sharedRepository 0600)) if !$old;
+                if (!$old) {
+                        $git->qx(qw(config core.sharedRepository 0600));
+                        $self->done; # force eidx_init on next round
+                }
                 my $packed_bytes = $git->packed_bytes;
                 my $unpacked_bytes = $packed_bytes / $self->packing_factor;
                 if ($unpacked_bytes >= $self->rotate_bytes) {