]> Sergey Matveev's repositories - public-inbox.git/commitdiff
searchidxpart: chomp line before splitting
authorEric Wong (Contractor, The Linux Foundation) <e@80x24.org>
Sat, 24 Feb 2018 00:19:51 +0000 (00:19 +0000)
committerEric Wong (Contractor, The Linux Foundation) <e@80x24.org>
Wed, 28 Feb 2018 18:53:29 +0000 (18:53 +0000)
This was adding a needless newline into doc_data

lib/PublicInbox/SearchIdxPart.pm

index 63fc70491354ea5aa1933c7a2325637fca3a9e59..e37887a766920a539ca0ea8d5f9d5e2f652aa8f8 100644 (file)
@@ -48,6 +48,7 @@ sub partition_worker_loop ($$) {
                        $self->_xdb_release;
                        $xdb = $txn = undef;
                } else {
+                       chomp $line;
                        my ($len, $artnum, $object_id) = split(/ /, $line);
                        $xdb ||= $self->_xdb_acquire;
                        if (!$txn) {