--batch-size=BYTES flush changes to OS after a given number of bytes
--max-size=BYTES do not index messages larger than the given size
--gc perform garbage collection instead of indexing
- --dedupe fix prior deduplication errors
+ --dedupe[=MSGID] fix prior deduplication errors (may be repeated)
--verbose | -v increase verbosity (may be repeated)
--dry-run | -n dry-run on --dedupe
fsync|sync!
indexlevel|index-level|L=s max_size|max-size=s
batch_size|batch-size=s
- dedupe gc commit-interval=i watch scan! dry-run|n
- all help|h))
+ dedupe:s@ gc commit-interval=i watch scan! dry-run|n
+ all C=s@ help|h))
or die $help;
if ($opt->{help}) { print $help; exit 0 };
die "--jobs must be >= 0\n" if defined $opt->{jobs} && $opt->{jobs} < 0;
local $SIG{USR1} = 'IGNORE'; # to be overridden in eidx_sync
# require lazily to speed up --help
require PublicInbox::Admin;
+PublicInbox::Admin::do_chdir(delete $opt->{C});
my $cfg = PublicInbox::Config->new;
my $eidx_dir = shift(@ARGV);
unless (defined $eidx_dir) {
if ($opt->{all}) {
$eidx->attach_config($cfg);
} else {
- $eidx->attach_inbox($_) for @ibxs;
+ $eidx->attach_config($cfg, \@ibxs);
}
if ($opt->{watch}) {
$cfg = undef; # save memory only after SIGHUP