bucket resync: persist reset id to bucket metadata (#16088)

This commit is contained in:
Poorna authored and GitHub committed 2022-11-18 01:39:05 -08:00
1 parent 3661aaf8a1
commit 7198be5be9
2 files changed
+18

No files matched your search

+3
View File
@@ -221,6 +221,9 @@ func (sm *siteResyncMetrics) incBucket(o resyncOpts, bktStatus ResyncStatusType)
defer sm.Unlock()
st, ok := sm.resyncStatus[o.resyncID]
if ok {
if st.BucketStatuses == nil {
st.BucketStatuses = map[string]ResyncStatusType{}
}
switch bktStatus {
case ResyncCompleted:
st.BucketStatuses[o.bucket] = ResyncCompleted