Revision: 14428
Author: adrian.chadd
Date: Sat Feb 20 08:57:13 2010
Log: Force AIO_READ operations to always maintain a valid callback data -
ie,
there will always be a completion callback being made.
http://code.google.com/p/lusca-cache/source/detail?r=14428
Modified:
/playpen/LUSCA_HEAD_zerocopy_storeread/libasyncio/async_io.c
=======================================
--- /playpen/LUSCA_HEAD_zerocopy_storeread/libasyncio/async_io.c Sun Aug 9
21:22:14 2009
+++ /playpen/LUSCA_HEAD_zerocopy_storeread/libasyncio/async_io.c Sat Feb 20
08:57:13 2010
@@ -242,6 +242,8 @@
ctrlp->done_handler = NULL;
ctrlp->done_handler_data = NULL;
debug(32, 0) ("this be aioCancel. Danger ahead!\n");
+ if (ctrlp->operation == _AIO_READ)
+ assert(cbdataValid(their_data));
if (cbdataValid(their_data))
done_handler(fd, their_data, NULL, -2, -2);
cbdataUnlock(their_data);
@@ -445,6 +447,8 @@
their_data = ctrlp->done_handler_data;
ctrlp->done_handler = NULL;
ctrlp->done_handler_data = NULL;
+ if (ctrlp->operation == _AIO_READ)
+ assert(cbdataValid(their_data));
if (cbdataValid(their_data)) {
retval = 1; /* Return that we've actually done some work */
done_handler(ctrlp->fd, their_data, ctrlp->bufp,
--
You received this message because you are subscribed to the Google Groups
"lusca-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/lusca-commit?hl=en.