mirror: check if bucket exists before creating it (#3233)

Fixes #3228
This commit is contained in:
kannappanr
2020-05-26 20:04:20 -07:00
committed by GitHub
parent 09f832f597
commit 7664bb2c8d
+1 -1
View File
@@ -851,7 +851,7 @@ func runMirror(srcURL, dstURL string, ctx *cli.Context, encKeyDB map[string][]pr
}
}
}
} else {
} else if _, err := dstClt.Stat(false, false, nil); err != nil {
withLock := false
mode, validity, unit, err := srcClt.GetObjectLockConfig()
if err == nil {