about summary refs log tree commit homepage
path: root/lib/PublicInbox/Xapcmd.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-10-17 08:19:11 +0000
committerEric Wong <e@80x24.org>2019-10-17 08:19:11 +0000
commitfece7fca6aeac74410a813cffcb0da338017d0ed (patch)
treedd8ebebc8ec82c65ff10723faeace03eb1152ca6 /lib/PublicInbox/Xapcmd.pm
parenteb424226f3bc1d4a05d1b3900634fadb2ee2c140 (diff)
parent144eddbc7abaca320773dda514589a3198c8f58c (diff)
downloadpublic-inbox-fece7fca6aeac74410a813cffcb0da338017d0ed.tar.gz
* origin/inboxdir:
  config: remove redundant inboxdir check
  config: support "inboxdir" in addition to "mainrepo"
  examples/grok-pull.post_update_hook: use "inbox_dir"
Diffstat (limited to 'lib/PublicInbox/Xapcmd.pm')
-rw-r--r--lib/PublicInbox/Xapcmd.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/Xapcmd.pm b/lib/PublicInbox/Xapcmd.pm
index 819d7829..22e56f42 100644
--- a/lib/PublicInbox/Xapcmd.pm
+++ b/lib/PublicInbox/Xapcmd.pm
@@ -153,7 +153,7 @@ sub run {
         my ($ibx, $task, $opt) = @_; # task = 'cpdb' or 'compact'
         my $cb = \&${\"PublicInbox::Xapcmd::$task"};
         PublicInbox::Admin::progress_prepare($opt ||= {});
-        my $dir = $ibx->{mainrepo} or die "no mainrepo in inbox\n";
+        my $dir = $ibx->{inboxdir} or die "no inboxdir in inbox\n";
         runnable_or_die($XAPIAN_COMPACT) if $opt->{compact};
         my $reindex; # v1:{ from => $x40 }, v2:{ from => [ $x40, $x40, .. ] } }
         my $from; # per-epoch ranges
@@ -181,7 +181,7 @@ sub run {
         if ($v == 1) {
                 if (defined $reshard) {
                         warn
-"--reshard=$reshard ignored for v1 $ibx->{mainrepo}\n";
+"--reshard=$reshard ignored for v1 $ibx->{inboxdir}\n";
                 }
                 my $old_parent = dirname($old);
                 same_fs_or_die($old_parent, $old);