From 2392f941f40289636b37ae9a0672c244861aa794 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 7 Nov 2020 10:56:54 +0000 Subject: searchidxshard: further improve {current_info} readability Add a space after \0 to visually disambiguate it from the {bytes} field. --- lib/PublicInbox/SearchIdxShard.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/PublicInbox/SearchIdxShard.pm') diff --git a/lib/PublicInbox/SearchIdxShard.pm b/lib/PublicInbox/SearchIdxShard.pm index 9566d234..1333b305 100644 --- a/lib/PublicInbox/SearchIdxShard.pm +++ b/lib/PublicInbox/SearchIdxShard.pm @@ -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) -- cgit v1.2.3-24-ge0c7