diff options
author | Eric Wong <e@yhbt.net> | 2020-08-07 10:52:15 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-08-07 23:46:12 +0000 |
commit | 8a66a8d396c6cff82e6041d107d7fb842db6d602 (patch) | |
tree | afcac34c11fbab2a2d40951325356d82b19eedcd /script | |
parent | 826e0992d956aa60711e779afeb8493884c41cc2 (diff) | |
download | public-inbox-8a66a8d396c6cff82e6041d107d7fb842db6d602.tar.gz |
Since the --compact switch works on Xapian shards, it makes sense that --sequential-shard affects our usage of xapian-compact(1).
Diffstat (limited to 'script')
-rwxr-xr-x | script/public-inbox-index | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/script/public-inbox-index b/script/public-inbox-index index dc9bdde1..56df5bfe 100755 --- a/script/public-inbox-index +++ b/script/public-inbox-index @@ -83,5 +83,8 @@ EOL $ibx_opt = { %$opt, sequentialshard => $v }; } PublicInbox::Admin::index_inbox($ibx, undef, $ibx_opt); - PublicInbox::Xapcmd::run($ibx, 'compact', $compact_opt) if $compact_opt; + if ($compact_opt) { + local $compact_opt->{jobs} = 0 if $ibx_opt->{sequentialshard}; + PublicInbox::Xapcmd::run($ibx, 'compact', $compact_opt); + } } |