mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
b3f8e9a62c
The req_state parameter tells the caller whether the async request is blocked in a full send queue: req_state >= DBWRAP_REQ_DISPATCHED := request is dispatched req_state < DBWRAP_REQ_DISPATCHED := send queue is full This is useful in a clustered Samba environment where the async dbwrap request is sent over a socket to the local ctdbd. If the send queue is full and the caller was issuing multiple async dbwrap requests in a loop, the caller knows it's probably time to stop sending requests for now and try again later. This will be used in subsequent commits in smbd_smb2_query_directory_send() when implementing async write time updates. Directories may contain umpteen files so we send many requests to ctdb without going through tevent and reading the responses which has the potential to deadlock. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> |
||
---|---|---|
.. | ||
dbwrap_cache.c | ||
dbwrap_cache.h | ||
dbwrap_file.c | ||
dbwrap_file.h | ||
dbwrap_local_open.c | ||
dbwrap_private.h | ||
dbwrap_rbt.c | ||
dbwrap_rbt.h | ||
dbwrap_tdb.c | ||
dbwrap_tdb.h | ||
dbwrap_util.c | ||
dbwrap.c | ||
dbwrap.h | ||
wscript_build |