mirror of
https://github.com/pgsty/minio.git
synced 2026-10-08 02:35:59 +03:00
Further print log messages once per error (#17618)
This commit is contained in:
+2
-2
@@ -2273,12 +2273,12 @@ func (s *xlStorage) RenameData(ctx context.Context, srcVolume, srcPath string, f
|
||||
xlMetaLegacy := &xlMetaV1Object{}
|
||||
json := jsoniter.ConfigCompatibleWithStandardLibrary
|
||||
if err := json.Unmarshal(dstBuf, xlMetaLegacy); err != nil {
|
||||
logger.LogIf(ctx, err)
|
||||
logger.LogOnceIf(ctx, err, "read-data-unmarshal-"+dstFilePath)
|
||||
// Data appears corrupt. Drop data.
|
||||
} else {
|
||||
xlMetaLegacy.DataDir = legacyDataDir
|
||||
if err = xlMeta.AddLegacy(xlMetaLegacy); err != nil {
|
||||
logger.LogIf(ctx, err)
|
||||
logger.LogOnceIf(ctx, err, "read-data-add-legacy-"+dstFilePath)
|
||||
}
|
||||
legacyPreserved = true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user