]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/SearchIdxShard.pm
searchidxshard: chomp $eidx_key from pipe
[public-inbox.git] / lib / PublicInbox / SearchIdxShard.pm
index 875a9ec92e01220abc56ddf99b6d2c1feb1597cd..dcfeb0beec76c1c9e452cfad24a118e62c1cc007 100644 (file)
@@ -83,11 +83,13 @@ sub shard_worker_loop ($$$$$) {
                } elsif ($line =~ s/\A\+X //) {
                        my ($len, $docid, $oid, $eidx_key) =
                                                        split(/ /, $line, 4);
+                       chomp $eidx_key;
                        $self->add_eidx_info($docid, $oid, $eidx_key,
                                                        eml($r, $len));
                } elsif ($line =~ s/\A-X //) {
                        my ($len, $docid, $oid, $eidx_key) =
                                                        split(/ /, $line, 4);
+                       chomp $eidx_key;
                        $self->remove_eidx_info($docid, $oid, $eidx_key,
                                                        eml($r, $len));
                } else {