]> Sergey Matveev's repositories - public-inbox.git/commit
v2writable: use msgmap as multi_mid queue
authorEric Wong <e@80x24.org>
Mon, 21 Oct 2019 22:57:50 +0000 (22:57 +0000)
committerEric Wong <e@80x24.org>
Tue, 22 Oct 2019 01:27:30 +0000 (01:27 +0000)
commit1d6e0dbc3bad19acbfd90a9841a334dcaa0e4641
treea5820e288ae1ef5069ab97ce37df177ef137b5d3
parent96a8b8832d791d53e05f235b5bc2492daab5f60a
v2writable: use msgmap as multi_mid queue

Instead of storing Message-IDs in the Msgmap object, we can
store the blob OID.

For initial indexing of mirrors, this lets us preserve
$sync->{regen} by storing the intended article number in
the queue.

On --reindex, the article number we store in Msgmap is ignored
but only used for ordering purposes.

This also allows us to avoid ENOMEM errors if somebody abuses
our system by reusing Message-IDs; but we now risk ENOSPC
instead (but systems tend to have more FS storage than RAM).
lib/PublicInbox/V2Writable.pm