]> Sergey Matveev's repositories - public-inbox.git/commit
V2Writeable.pm: Ensure that a found message number is in the msgmap
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 1 Aug 2018 16:43:43 +0000 (11:43 -0500)
committerEric Wong <e@80x24.org>
Fri, 3 Aug 2018 20:04:29 +0000 (20:04 +0000)
commit65820d88976bc2fa83e9acd3b460ac304578d40a
treea08d7d3ff1c2f0510ffb4f690fc335aa158b7e68
parent3f189032fb2d7c8a9dda732e0263e697ce1cb0ac
V2Writeable.pm: Ensure that a found message number is in the msgmap

The lookup to see if a num has already been assigned to a message
happens in a temporary copy of message map.  It is possible that the
number has been removed from the current message map.  The
unindex/reindex after a history rewrite triggered by a purge should be
one such case.  Therefore add the number to the msgmap in case it is
not currently present.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
lib/PublicInbox/V2Writable.pm