[PATCH] Fix an abort in transaction_loop under transaction_loop_recovery test (bug 12580)
Amitay Isaacs
amitay at gmail.com
Wed Feb 15 00:26:55 UTC 2017
Hi,
What's the best practice when using tevent_queue with tevent_req?
comm_write_send/recv computation is used to send data to an fd. There can
be multiple write requests occurring simultaneously, so comm_write_send
uses a tevent_queue to serialize all those requests. However, what happens
if tevent_req which is in the queue is freed? What's the best way to track
the queue entry corresponding to that tevent_req?
Here's an attempt to track tevent_req and corresponding tevent_queue_entry,
so when tevent_req is free'd, the corresponding tevent_queue_entry also
gets freed and the entry is removed from the queue.
Please review and push.
Amitay.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ctdb.patches
Type: application/octet-stream
Size: 15106 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20170215/db4cd5e9/ctdb.obj>
More information about the samba-technical
mailing list