From a0eabc015e22e51cbf8f6060abafd5b53a0ae72f Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 14 Jun 2019 07:37:03 +0000 Subject: admin|xapcmd: user-facing messages say "shard" We're slowly getting rid of the word "partition" when it comes to remain consistent with Xapian docs. --- lib/PublicInbox/Admin.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/PublicInbox/Admin.pm') diff --git a/lib/PublicInbox/Admin.pm b/lib/PublicInbox/Admin.pm index 8a2f2043..5549b855 100644 --- a/lib/PublicInbox/Admin.pm +++ b/lib/PublicInbox/Admin.pm @@ -207,7 +207,7 @@ sub index_inbox { my $n = $v2w->{partitions}; if ($jobs != ($n + 1)) { warn -"Unable to respect --jobs=$jobs, inbox was created with $n partitions\n"; +"Unable to respect --jobs=$jobs, inbox was created with $n shards\n"; } } } -- cgit v1.2.3-24-ge0c7 From 240de56c97d767cd5c819ac0be858359e8d2eff3 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 14 Jun 2019 07:59:53 +0000 Subject: v2writable: rename {partitions} field to {shards} Our internal data structure should be consistent with Xapian terminology. --- lib/PublicInbox/Admin.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/PublicInbox/Admin.pm') diff --git a/lib/PublicInbox/Admin.pm b/lib/PublicInbox/Admin.pm index 5549b855..29388ad6 100644 --- a/lib/PublicInbox/Admin.pm +++ b/lib/PublicInbox/Admin.pm @@ -204,7 +204,7 @@ sub index_inbox { if ($jobs == 0) { $v2w->{parallel} = 0; } else { - my $n = $v2w->{partitions}; + my $n = $v2w->{shards}; if ($jobs != ($n + 1)) { warn "Unable to respect --jobs=$jobs, inbox was created with $n shards\n"; -- cgit v1.2.3-24-ge0c7