]> Sergey Matveev's repositories - public-inbox.git/commitdiff
idx_stack: avoid conditional hash assignment weirdness
authorEric Wong <e@80x24.org>
Mon, 1 Nov 2021 19:06:08 +0000 (19:06 +0000)
committerEric Wong <e@80x24.org>
Mon, 1 Nov 2021 19:49:38 +0000 (19:49 +0000)
I've been seeing the following error on occasion during "make check-run":
$PWD/t/data-gen/reindex-time-range.v1-master index failed: Modification of a read-only value attempted at $DIR/lib/PublicInbox/SearchIdx.pm line 899, <$r> line 1.

Perhaps this fixes it.  In any case, a construct of:

 $h->{k} //= do { $h->{x} = ...; $val };

seems wrong and may cause Perl to error out depending on how
hashes are randomized.


No differences found