]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Import.pm
import: auto-update index when done
[public-inbox.git] / lib / PublicInbox / Import.pm
index e3d65f4aa73b8eb28fa3e9024361c057e2284b9c..c13d4834992b57eb9c5dbcc81b356d84749d2753 100644 (file)
@@ -226,6 +226,11 @@ sub done {
                waitpid($pid, 0) == $pid or
                        die 'update-server-info did not finish';
                $? == 0 or die "failed to update-server-info: $?\n";
+
+               eval {
+                       require PublicInbox::SearchIdx;
+                       PublicInbox::SearchIdx->new($git_dir, 2)->index_sync;
+               };
        }
 
        my $lockfh = delete $self->{lockfh} or die "BUG: not locked: $!";