mirror of
https://github.com/pgsty/minio.git
synced 2026-07-30 01:16:15 +03:00
Add number of versions in server info API (#14812)
The goal is to show the number of versions in the server info API.
This commit is contained in:
+1
-1
@@ -498,7 +498,7 @@ func (s *xlStorage) NSScanner(ctx context.Context, cache dataUsageCache, updates
|
||||
atomic.AddUint64(&globalScannerStats.accTotalVersions, 1)
|
||||
oi := version.ToObjectInfo(item.bucket, item.objectPath())
|
||||
sz := item.applyActions(ctx, objAPI, oi, &sizeS)
|
||||
if !oi.DeleteMarker && sz == oi.Size {
|
||||
if oi.VersionID != "" && sz == oi.Size {
|
||||
sizeS.versions++
|
||||
}
|
||||
sizeS.totalSize += sz
|
||||
|
||||
Reference in New Issue
Block a user