Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[codereview]:question about function "preallocExtendTrunc" #13273

Closed
woodliu opened this issue Aug 5, 2021 · 1 comment
Closed

[codereview]:question about function "preallocExtendTrunc" #13273

woodliu opened this issue Aug 5, 2021 · 1 comment
Labels

Comments

@woodliu
Copy link

woodliu commented Aug 5, 2021

size, err := f.Seek(sizeInBytes, io.SeekEnd)

I Think the paramerter sizeInBytes here should be 0, as the length of the content of file. Later it will compare with sizeInBytes to see if it needs to be truncated.

Or size will always >=sizeInBytes

@woodliu woodliu changed the title question about function "preallocExtendTrunc" [codereview]:question about function "preallocExtendTrunc" Aug 11, 2021
@stale
Copy link

stale bot commented Nov 10, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 21 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Nov 10, 2021
@stale stale bot closed this as completed Dec 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant