diff options
author | Eric Wong <e@80x24.org> | 2020-12-26 10:16:23 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2020-12-27 09:30:33 +0000 |
commit | 02aad3e340d1711359c4def6e91482140a989ce1 (patch) | |
tree | 31e2cc327ce5fcde466ef524bdd7b7faeea0b6f8 /script | |
parent | 41464d205ade16a5a847061fa2eb706a33b52a88 (diff) | |
download | public-inbox-02aad3e340d1711359c4def6e91482140a989ce1.tar.gz |
This makes diagnosing --watch problems easier when there's 50K inboxes by avoiding the lengthy scan (which is the reason --watch exists in the first place).
Diffstat (limited to 'script')
-rw-r--r-- | script/public-inbox-extindex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/script/public-inbox-extindex b/script/public-inbox-extindex index 17986f60..f4ffda4b 100644 --- a/script/public-inbox-extindex +++ b/script/public-inbox-extindex @@ -23,12 +23,12 @@ usage: public-inbox-extindex [options] EXTINDEX_DIR [INBOX_DIR] BYTES may use `k', `m', and `g' suffixes (e.g. `10m' for 10 megabytes) See public-inbox-extindex(1) man page for full documentation. EOF -my $opt = { quiet => -1, compact => 0, max_size => undef, fsync => 1 }; +my $opt = { quiet => -1, compact => 0, fsync => 1, scan => 1 }; GetOptions($opt, qw(verbose|v+ reindex rethread compact|c+ jobs|j=i fsync|sync! indexlevel|index-level|L=s max_size|max-size=s batch_size|batch-size=s - gc commit-interval=i watch + gc commit-interval=i watch scan! all help|h)) or die $help; if ($opt->{help}) { print $help; exit 0 }; |