mirror of
https://github.com/samba-team/samba.git
synced 2025-01-05 09:18:06 +03:00
60550fbe18
CTDB uses a queue to receive requests and send answers. It works asynchronously using the tevent framework. However there was an issue that gave priority to the receiving side so, when a request was processed and the answer posted to the queue, if another incoming request arrived, it was served before sending the previous answer. This scenario could repeat for long periods of time if the frequency of incoming requests was high enough. Eventually, a small time gap between incoming request gave a chance to process the pending output queue, sending many answers in a burst. This patch makes sure that both queues (input and output) are processed if the event contains the appropriate flag. Signed-off-by: Xavi Hernandez <xhernandez@redhat.com> Reviewed-by: Volker Lendecke <vl@samba.org> Reviewed-by: Martin Schwenke <martin@meltin.net> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Mon Jul 1 09:17:43 UTC 2024 on atb-devel-224 |
||
---|---|---|
.. | ||
cmdline.c | ||
cmdline.h | ||
comm.c | ||
comm.h | ||
common.h | ||
ctdb_io.c | ||
ctdb_ltdb.c | ||
ctdb_util.c | ||
db_hash.c | ||
db_hash.h | ||
event_script.c | ||
event_script.h | ||
hash_count.c | ||
hash_count.h | ||
logging.c | ||
logging.h | ||
path_tool.c | ||
path_tool.h | ||
path.c | ||
path.h | ||
pidfile.c | ||
pidfile.h | ||
pkt_read.c | ||
pkt_read.h | ||
pkt_write.c | ||
pkt_write.h | ||
rb_tree.c | ||
rb_tree.h | ||
reqid.c | ||
reqid.h | ||
run_event.c | ||
run_event.h | ||
run_proc.c | ||
run_proc.h | ||
sock_client.c | ||
sock_client.h | ||
sock_daemon.c | ||
sock_daemon.h | ||
sock_io.c | ||
sock_io.h | ||
srvid.c | ||
srvid.h | ||
system_socket.c | ||
system_socket.h | ||
system.c | ||
system.h | ||
tmon.c | ||
tmon.h | ||
tunable.c | ||
tunable.h |