X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=lib%2FPublicInbox%2FMsgmap.pm;h=f5f88431bbfa82d1e7af847126d14441f6409864;hb=5e8be4aa1e6adb321e2b85f8f96ad1e2646c093a;hp=5c37e169e1613b35b76e32a735b779c8473d5d9b;hpb=678fb3c2ba03a4a284620c039717c0d94dd6106a;p=public-inbox.git diff --git a/lib/PublicInbox/Msgmap.pm b/lib/PublicInbox/Msgmap.pm index 5c37e169..f5f88431 100644 --- a/lib/PublicInbox/Msgmap.pm +++ b/lib/PublicInbox/Msgmap.pm @@ -92,9 +92,12 @@ sub last_commit { $self->meta_accessor('last_commit', $commit); } -sub last_commit_n { - my ($self, $i, $commit) = @_; - $self->meta_accessor('last_commit'.$i, $commit); +# v2 uses this to keep track of how up-to-date Xapian is +# old versions may be automatically GC'ed away in the future, +# but it's a trivial amount of storage. +sub last_commit_xap { + my ($self, $version, $i, $commit) = @_; + $self->meta_accessor("last_xap$version-$i", $commit); } sub created_at {