On Mon, Nov 09, 2015 at 09:12:46AM -0500, Ramachandra Reddy Ankireddypalle
wrote:> Hi,
> Wanted to know when is it safe to use the buffer passed to
> glfs_write_async method. Is it safe to use the buffer right after returning
> from glfs_write_async method or after the callback is invoked after
> completion of write request.
No, you should not use the buffer until the callback is invoked. We try
to optimize where we can, and reducing the number of memory copies for a
write operation is one of them.
Niels
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL:
<http://www.gluster.org/pipermail/gluster-users/attachments/20151109/249b6c62/attachment.sig>