mirror of
https://github.com/minio/minio.git
synced 2026-02-04 18:00:15 -05:00
heal: Update object parity with the latest configured SC (#17187)
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"time"
|
||||
)
|
||||
|
||||
@@ -297,6 +298,14 @@ func (fi *FileInfo) SetInlineData() {
|
||||
fi.Metadata[ReservedMetadataPrefixLower+"inline-data"] = "true"
|
||||
}
|
||||
|
||||
// SetErasureParityUpdated adds trace information about an object parity update during healing
|
||||
func (fi *FileInfo) SetErasureParityUpdated(old, new int) {
|
||||
if fi.Metadata == nil {
|
||||
fi.Metadata = make(map[string]string, 1)
|
||||
}
|
||||
fi.Metadata[ReservedMetadataPrefixLower+"erasure-parity-update"] = fmt.Sprintf("%d->%d", old, new)
|
||||
}
|
||||
|
||||
// VersionPurgeStatusKey denotes purge status in metadata
|
||||
const (
|
||||
VersionPurgeStatusKey = ReservedMetadataPrefixLower + "purgestatus"
|
||||
|
||||
Reference in New Issue
Block a user