fix: tests and resync replication status (#18244)

This commit is contained in:
Harshavardhana
2023-10-13 17:03:34 -07:00
committed by GitHub
parent b3e7de010d
commit e1e33077e8
5 changed files with 29 additions and 29 deletions

View File

@@ -1061,12 +1061,7 @@ func (s *xlStorage) deleteVersions(ctx context.Context, volume, path string, fis
return s.WriteAll(ctx, volume, pathJoin(path, xlStorageFormatFile), buf)
}
// Move xl.meta to trash
err = s.moveToTrash(pathJoin(volumeDir, path, xlStorageFormatFile), false, false)
if err == nil || err == errFileNotFound {
s.deleteFile(volumeDir, pathJoin(volumeDir, path), false, false)
}
return err
return s.deleteFile(volumeDir, pathJoin(volumeDir, path), true, false)
}
// DeleteVersions deletes slice of versions, it can be same object