]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Msgmap.pm
v2writable: allow tracking parallel versions
[public-inbox.git] / lib / PublicInbox / Msgmap.pm
index 5c37e169e1613b35b76e32a735b779c8473d5d9b..f5f88431bbfa82d1e7af847126d14441f6409864 100644 (file)
@@ -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 {