diff options
author | Eric Wong <e@yhbt.net> | 2020-08-13 08:04:37 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-08-14 09:56:15 +0000 |
commit | ed04e9e16999b4624f884d0ab0b66ba16ae57691 (patch) | |
tree | 9028f05e2c8df4cc4f84b39cec10393187e04e7a /script/public-inbox-compact | |
parent | c81d2d38b3fb8adcee890dbae59c0e03e129217f (diff) | |
download | public-inbox-ed04e9e16999b4624f884d0ab0b66ba16ae57691.tar.gz |
For -index, this is a convenient way to quickly index all inboxes after a grok-pull. Might as well support it for rarely used commands like -compact and -xcpdb, too.
Diffstat (limited to 'script/public-inbox-compact')
-rwxr-xr-x | script/public-inbox-compact | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/script/public-inbox-compact b/script/public-inbox-compact index 5c681466..b5fa0086 100755 --- a/script/public-inbox-compact +++ b/script/public-inbox-compact @@ -10,9 +10,9 @@ use PublicInbox::Admin; PublicInbox::Admin::require_or_die('-index'); my $usage = "Usage: public-inbox-compact INBOX_DIR\n"; my $opt = { compact => 1, -coarse_lock => 1 }; -GetOptions($opt, @PublicInbox::Xapcmd::COMPACT_OPT) or +GetOptions($opt, qw(all), @PublicInbox::Xapcmd::COMPACT_OPT) or die "bad command-line args\n$usage"; -my @ibxs = PublicInbox::Admin::resolve_inboxes(\@ARGV) or die $usage; +my @ibxs = PublicInbox::Admin::resolve_inboxes(\@ARGV, $opt) or die $usage; foreach (@ibxs) { my $ibx = PublicInbox::InboxWritable->new($_); PublicInbox::Xapcmd::run($ibx, 'compact', $opt); |