Remove extraneous bucket on target while mirroring (#2550)

Fixes  #2527
This commit is contained in:
Praveen raj Mani
2018-09-25 10:20:14 -07:00
committed by kannappanr
parent b2d2e09105
commit ab31cf97da
+2 -2
View File
@@ -229,8 +229,8 @@ func (mj *mirrorJob) doRemove(sURLs URLs) URLs {
// Construct proper path with alias.
targetWithAlias := filepath.Join(sURLs.TargetAlias, sURLs.TargetContent.URL.Path)
// Remove extraneous file on target.
err := probe.NewError(removeSingle(targetWithAlias, isIncomplete, mj.isFake, 0, 0, sURLs.encKeyDB))
// Remove extraneous file/bucket on target.
err := probe.NewError(removeRecursive(targetWithAlias, isIncomplete, mj.isFake, 0, 0, sURLs.encKeyDB))
return sURLs.WithError(err)
}