Files
gerrit/proto
Dave Borowitz 10edb7cad8 Record the number of updates to a NoteDb ref
Eventually we may want to limit the total length of a NoteDb ref's
history, to avoid having to scan and store an unbounded amount of commit
data into ChangeNotes. To do that, we first need to record it.

In most cases, this number will equal getChangeMessages().size(), but
that's partly an artifact of the current APIs, which always accompany a
change with a ChangeMessage. The underlying storage layer doesn't
require it.

Don't bump the ChangeNotesCache version number: old entries will just
return an update count of 0. My current thinking is that populating this
field is not worth flushing the persistent cache. If we change our
minds, we can trivially bump the version number.

Change-Id: I9fbcdfa0583a525e60b75672032f3179e5da3c79
2019-04-18 08:02:37 -07:00
..
2019-03-20 14:52:33 +01:00
2018-12-18 11:56:58 -08:00