]> 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 c6a73155401b9bb3c1c6fd4c5adedddb79a01bbf..f5f88431bbfa82d1e7af847126d14441f6409864 100644 (file)
@@ -92,6 +92,14 @@ sub last_commit {
        $self->meta_accessor('last_commit', $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 {
        my ($self, $second) = @_;
        $self->meta_accessor('created_at', $second);