diff options
author | Eric Wong <e@80x24.org> | 2020-11-27 21:33:55 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2020-11-28 04:53:25 +0000 |
commit | c2f82b2e27e1b3c11a4c0b00b90829a4ee99c602 (patch) | |
tree | 3b33517c4c28e7d3eebf29cd8d1a5d16b82e4cb4 /script | |
parent | 811b8d3cbaa790f59b7b107140b86248da16499b (diff) | |
download | public-inbox-c2f82b2e27e1b3c11a4c0b00b90829a4ee99c602.tar.gz |
v1 and v2 inbox indexing now supports graceful shutdown checks just like ExtSearchIdx. Additionally, we'll consistently perform quit checks at the top of loops for consistency. Interaction with the --xapian-only and --sequential-shard options are a bit lacking, and will warn the user to use "--reindex --xapian-only" to fix.
Diffstat (limited to 'script')
-rwxr-xr-x | script/public-inbox-index | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/script/public-inbox-index b/script/public-inbox-index index 55e4f641..5909801e 100755 --- a/script/public-inbox-index +++ b/script/public-inbox-index @@ -90,6 +90,7 @@ EOL $ibx_opt = { %$opt, sequential_shard => $v }; } PublicInbox::Admin::index_inbox($ibx, undef, $ibx_opt); + last if $ibx_opt->{quit}; if (my $copt = $opt->{compact_opt}) { local $copt->{jobs} = 0 if $ibx_opt->{sequential_shard}; PublicInbox::Xapcmd::run($ibx, 'compact', $copt); |