heal: Remove transitioned objects' parts from outdated disks (#13018)

Bonus: check equality for replication and other metadata
This commit is contained in:
Krishnan Parthasarathi
2021-08-23 13:14:55 -07:00
committed by GitHub
parent 901d1314af
commit db35bcf2ce
4 changed files with 134 additions and 29 deletions

View File

@@ -1930,7 +1930,10 @@ func (s *xlStorage) RenameData(ctx context.Context, srcVolume, srcPath string, f
var srcDataPath string
var dstDataPath string
dataDir := retainSlash(fi.DataDir)
var dataDir string
if !fi.IsRemote() {
dataDir = retainSlash(fi.DataDir)
}
if dataDir != "" {
srcDataPath = retainSlash(pathJoin(srcVolumeDir, srcPath, dataDir))
// make sure to always use path.Join here, do not use pathJoin as