api: StatObject if listing returned missing file. (#1945)

This commit is contained in:
Harshavardhana
2017-01-04 18:36:09 -08:00
committed by GitHub
parent 66a65aab02
commit 9cf76b1233
2 changed files with 28 additions and 13 deletions
+2 -10
View File
@@ -82,21 +82,13 @@ func objectDifference(sourceClnt, targetClnt Client, sourceURL, targetURL string
}
if !srcEOF && srcCtnt.Err != nil {
if isErrIgnored(srcCtnt.Err) {
errorIf(srcCtnt.Err.Trace(sourceURL, targetURL), fmt.Sprintf("Failed on '%s'", sourceURL))
} else {
errorIf(srcCtnt.Err.Trace(sourceURL, targetURL), fmt.Sprintf("Failed on '%s'", sourceURL))
}
errorIf(srcCtnt.Err.Trace(sourceURL, targetURL), fmt.Sprintf("Failed on '%s'", sourceURL))
srcCtnt, srcOk = <-srcCh
continue
}
if !tgtEOF && tgtCtnt.Err != nil {
if isErrIgnored(tgtCtnt.Err) {
errorIf(tgtCtnt.Err.Trace(sourceURL, targetURL), fmt.Sprintf("Failed on '%s'", targetURL))
} else {
errorIf(tgtCtnt.Err.Trace(sourceURL, targetURL), fmt.Sprintf("Failed on '%s'", targetURL))
}
errorIf(tgtCtnt.Err.Trace(sourceURL, targetURL), fmt.Sprintf("Failed on '%s'", targetURL))
tgtCtnt, tgtOk = <-tgtCh
continue
}