From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 3A9AC1F9F8 for ; Sat, 15 Jun 2019 08:47:22 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 05/20] searchidxpart: start using "shard" in user-visible places Date: Sat, 15 Jun 2019 08:47:01 +0000 Message-Id: <20190615084716.3075-6-e@80x24.org> In-Reply-To: <20190615084716.3075-1-e@80x24.org> References: <20190615084716.3075-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: We'll name our process title with "shard" instead, and update a few error messages and comments to match. --- lib/PublicInbox/SearchIdxPart.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/PublicInbox/SearchIdxPart.pm b/lib/PublicInbox/SearchIdxPart.pm index 51d81a0..77fb7d9 100644 --- a/lib/PublicInbox/SearchIdxPart.pm +++ b/lib/PublicInbox/SearchIdxPart.pm @@ -1,8 +1,8 @@ # Copyright (C) 2018 all contributors # License: AGPL-3.0+ -# used to interface with a single Xapian partition in V2 repos. -# See L for more info on how we partition Xapian +# used to interface with a single Xapian shard in V2 repos. +# See L for more info on how we shard Xapian package PublicInbox::SearchIdxPart; use strict; use warnings; @@ -47,7 +47,7 @@ sub spawn_worker { sub partition_worker_loop ($$$$) { my ($self, $r, $part, $bnote) = @_; - $0 = "pi-v2-partition[$part]"; + $0 = "pi-v2-shard[$part]"; my $current_info = ''; my $warn_cb = $SIG{__WARN__} || sub { print STDERR @_ }; local $SIG{__WARN__} = sub { @@ -89,7 +89,7 @@ sub index_raw { my ($self, $bytes, $msgref, $artnum, $oid, $mid0, $mime) = @_; if (my $w = $self->{w}) { print $w "$bytes $artnum $oid $mid0\n", $$msgref or die - "failed to write partition $!\n"; + "failed to write shard $!\n"; $w->flush or die "failed to flush: $!\n"; } else { $$msgref = undef; -- EW