zeroshade commented on code in PR #667:
URL: https://github.com/apache/iceberg-go/pull/667#discussion_r2666489000


##########
table/snapshot_producers.go:
##########
@@ -260,11 +262,12 @@ func (m *manifestMergeManager) groupBySpec(manifests 
[]iceberg.ManifestFile) map
        return groups
 }
 
-func (m *manifestMergeManager) createManifest(specID int, bin 
[]iceberg.ManifestFile) (iceberg.ManifestFile, error) {
+func (m *manifestMergeManager) createManifest(specID int, bin 
[]iceberg.ManifestFile) (mf iceberg.ManifestFile, err error) {
        wr, path, counter, err := m.snap.newManifestWriter(m.snap.spec(specID))
        if err != nil {
                return nil, err
        }
+       defer internal.CheckedClose(wr, &err)

Review Comment:
   this doesn't cause an error when we successfully call close at line 300?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to