chitralverma commented on PR #9402:
URL: https://github.com/apache/opendal/pull/9402#issuecomment-7262408077

   Re [your 
review](https://github.com/apache/opendal/pull/9402#pullrequestreview-6104687649):
 fixed in 7d6526d66 (head 87f548d15, which merges `main`). Each generated C 
option struct doc now says to initialize every member, for example with 
`opendal_copy_options opts = {0};`, and that a function reads the options and 
their strings only until it returns. Flagged members say `has_x` controls 
whether the value applies, borrowed strings must be nul-terminated UTF-8, and 
the hint doc states the `s3` result of a wrong hint with `chunk`.
   
   - Silo S3, 12 MiB source, 5 MiB `chunk`: a 7,340,031-byte hint succeeds and 
copies exactly 7,340,031 bytes; a hint above the size fails with 
`OPENDAL_UNEXPECTED`. `fs` copies the whole file with a short or long hint.
   - Azurite: after `opendal_operator_copier_with()` returns (likewise the 
reader and writer constructors), overwriting the `if_match` string and freeing 
the options does not change the result. Overwriting it before the call fails 
with `OPENDAL_CONDITION_NOT_MATCH`.
   - The generator writes these notes for every option struct, so the stat, 
read, reader, and write docs change the same way. Header declarations stay as 
on `main`.
   
   *This comment is AI assisted.*


-- 
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]

Reply via email to