]> Sergey Matveev's repositories - public-inbox.git/commitdiff
searchidxshard: further improve {current_info} readability
authorEric Wong <e@80x24.org>
Sat, 7 Nov 2020 10:56:54 +0000 (10:56 +0000)
committerEric Wong <e@80x24.org>
Sun, 8 Nov 2020 10:18:17 +0000 (10:18 +0000)
Add a space after \0 to visually disambiguate it from the
{bytes} field.

lib/PublicInbox/SearchIdxShard.pm

index 9566d23461bb71e67e967742e375133c51cd5cbf..1333b30529e857b5fb205dc4b24e0c8275b30e66 100644 (file)
@@ -89,7 +89,7 @@ sub shard_worker_loop ($$$$$) {
                        my $eidx_key;
                        if ($line =~ s/\AX=(.+)\0//) {
                                $eidx_key = $1;
-                               $v2w->{current_info} =~ s/\0/\\0/;
+                               $v2w->{current_info} =~ s/\0/\\0 /;
                        }
                        # n.b. $mid may contain spaces(!)
                        my ($len, $bytes, $num, $oid, $ds, $ts, $tid, $mid)