count all versions as part of DeleteAllVersionsAction (#17821)

This commit is contained in:
Harshavardhana
2023-08-09 08:55:19 -07:00
committed by GitHub
parent b732a673dc
commit 6e860b6dc5
3 changed files with 19 additions and 6 deletions

View File

@@ -558,8 +558,13 @@ func (s *xlStorage) NSScanner(ctx context.Context, cache dataUsageCache, updates
for _, oi := range objInfos {
done = globalScannerMetrics.time(scannerMetricApplyVersion)
sz := item.applyActions(ctx, objAPI, oi, &sizeS)
actualSz, _ := oi.GetActualSize()
done()
actualSz, err := oi.GetActualSize()
if err != nil {
continue
}
if oi.DeleteMarker {
sizeS.deleteMarkers++
}