1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/lib/dbwrap
Ralph Boehme b3f8e9a62c dbwrap: add dbwrap_parse_record_send/recv
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>
2017-04-18 22:54:16 +02:00
..
dbwrap_cache.c dbwrap: Make dbwrap_db_id return size_t 2015-09-22 04:51:16 +02:00
dbwrap_cache.h dbwrap: Avoid an unnecessary #include 2014-10-30 06:52:04 +01:00
dbwrap_file.c dbwrap_file: fix use of read_data() 2016-01-27 00:09:05 +01:00
dbwrap_file.h s3:dbwrap: remove unused args from db_open_file() 2012-09-21 16:26:38 +02:00
dbwrap_local_open.c dbwrap: Remove loadparm_context from db_open_tdb 2015-09-22 04:51:16 +02:00
dbwrap_private.h dbwrap: add parse_record_send/recv to struct db_context 2017-04-18 22:54:16 +02:00
dbwrap_rbt.c build: Address may be used uninitialized in this function on Ubuntu 10.04 2016-06-08 08:48:57 +02:00
dbwrap_rbt.h move the dbwrap library to the top level 2012-05-14 04:04:55 +02:00
dbwrap_tdb.c dbwrap_tdb: Fix a typo 2015-11-23 15:16:19 +01:00
dbwrap_tdb.h dbwrap: Remove loadparm_context from db_open_tdb 2015-09-22 04:51:16 +02:00
dbwrap_util.c dbwrap: add dbwrap_purge[_bystring] 2016-03-01 21:50:24 +01:00
dbwrap.c dbwrap: add dbwrap_parse_record_send/recv 2017-04-18 22:54:16 +02:00
dbwrap.h dbwrap: add dbwrap_parse_record_send/recv 2017-04-18 22:54:16 +02:00
wscript_build dbwrap: add dbwrap_parse_record_send/recv 2017-04-18 22:54:16 +02:00