mirror of
https://github.com/minio/minio.git
synced 2025-11-23 02:57:42 -05:00
debug: Close object after check (#15077)
This commit is contained in:
@@ -230,6 +230,8 @@ func main() {
|
|||||||
}()
|
}()
|
||||||
wg.Wait()
|
wg.Wait()
|
||||||
|
|
||||||
|
tobj.Close()
|
||||||
|
|
||||||
if !sourceFailed && !targetFailed {
|
if !sourceFailed && !targetFailed {
|
||||||
ssum := srcSha256.Sum(nil)
|
ssum := srcSha256.Sum(nil)
|
||||||
tsum := tgtSha256.Sum(nil)
|
tsum := tgtSha256.Sum(nil)
|
||||||
@@ -240,6 +242,8 @@ func main() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sobj.Close()
|
||||||
} else {
|
} else {
|
||||||
fmt.Printf("unreadable on source: %s (%s)\n", srcCtnt.Key, err)
|
fmt.Printf("unreadable on source: %s (%s)\n", srcCtnt.Key, err)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user