You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
woodliu
changed the title
question about function "preallocExtendTrunc"
[codereview]:question about function "preallocExtendTrunc"
Aug 11, 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.
etcd/client/pkg/fileutil/preallocate.go
Line 43 in e591fcb
I Think the paramerter
sizeInByteshere should be0, as the length of the content of file. Later it will compare withsizeInBytesto see if it needs to be truncated.Or
sizewill always>=sizeInBytesThe text was updated successfully, but these errors were encountered: