Skip to content

fix: close checksum file on ReadAll failure - #357

Open
equationzhao wants to merge 1 commit into
masterfrom
equationzhao/fix-checksum-close-on-error
Open

fix: close checksum file on ReadAll failure#357
equationzhao wants to merge 1 commit into
masterfrom
equationzhao/fix-checksum-close-on-error

Conversation

@equationzhao

Copy link
Copy Markdown
Owner

Summary

  • EnableSum deferred Close only after a successful ReadAll, leaking the FD on read errors.
  • Defer close immediately after Open succeeds.

Test plan

  • go test ./internal/content/

Made with Cursor

Move defer Close immediately after a successful Open so ReadAll errors still release the FD.

Co-authored-by: Cursor <cursoragent@cursor.com>
@qodo-code-review

Copy link
Copy Markdown

ⓘ Qodo reviews are paused because the subscription is no longer active. Ask your workspace admin to reactivate the subscription to resume reviews. Manage billing

@cursor

cursor Bot commented Aug 12, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_66f206aa-4ee9-43bc-85ae-15155b402b05)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant