mirror of
https://github.com/minio/minio.git
synced 2025-01-27 06:33:18 -05:00
debug: Close object after check (#15077)
This commit is contained in:
parent
4b3e7aee0b
commit
e9efee0e64
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user