]> Sergey Matveev's repositories - public-inbox.git/commit
searchidx: avoid modification of read-only `$_'
authorEric Wong <e@80x24.org>
Mon, 22 Nov 2021 18:23:52 +0000 (18:23 +0000)
committerEric Wong <e@80x24.org>
Mon, 22 Nov 2021 21:36:50 +0000 (21:36 +0000)
commiteee1eb1ed3bbf3264676954bb879ed67376169b6
treec59727d08486cc8cdee7781f6df443032a542c19
parent03de71b293b52db96a254bad2822f863743f5e7d
searchidx: avoid modification of read-only `$_'

This fixes the "Modification of a read-only value attempted at ..."
error in an initial run of t/reindex-time-range.t.  It was
reproducible by running `rm -rf t/data-gen/reindex-time-range.v*'
before `make && prove -bvw t/reindex-time-range.t'.  Thanks to
Jörg Rödel for providing the backtrace which helped find this.

Debugged-by: Jörg Rödel <joro@8bytes.org>
Link: https://public-inbox.org/meta/YZuZEY+WSnm4wlrS@8bytes.org/
lib/PublicInbox/SearchIdx.pm