volume info collect compact revision number

This commit is contained in:
Chris Lu
2019-03-18 09:32:21 -07:00
parent 104922a3db
commit ece9d13312
5 changed files with 106 additions and 90 deletions

View File

@@ -121,7 +121,9 @@ func (s *Store) Status() []*VolumeInfo {
DeleteCount: v.nm.DeletedCount(),
DeletedByteCount: v.nm.DeletedSize(),
ReadOnly: v.readOnly,
Ttl: v.Ttl}
Ttl: v.Ttl,
CompactRevision: uint32(v.CompactRevision),
}
stats = append(stats, s)
}
location.RUnlock()