]> Sergey Matveev's repositories - public-inbox.git/commit
msgmap: split ->max into its own method
authorEric Wong <e@yhbt.net>
Wed, 10 Jun 2020 07:04:03 +0000 (07:04 +0000)
committerEric Wong <e@yhbt.net>
Sat, 13 Jun 2020 07:55:45 +0000 (07:55 +0000)
commiteab4dfdda4eeea9a54aa674510fa11789c5f91c8
tree877861f4afd21b76bcd903ebe26db34332b249e9
parentacb6cf984053115ed6dc5ed673786ed99e1f098d
msgmap: split ->max into its own method

There's enough places where we only care about the max NNTP
article number to warrant avoiding a call into SQLite.

Using ->num_highwater in read-only packages such as
PublicInbox::IMAP is also incorrect, since that memoizes
and won't pick up changes made by other processes.
lib/PublicInbox/IMAP.pm
lib/PublicInbox/Msgmap.pm