mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
5d9de604d9
Because fcntl locks don't nest, we track them in the tdb->lockrecs array and only place/release them when the count goes to 1/0. We only do this for record locks, so we simply place the list number (or -1 for the free list) in the structure. To generalize this: 1) Put the offset rather than list number in struct tdb_lock_type. 2) Rename _tdb_lock() to tdb_nest_lock, make it non-static and move the allrecord check out to the callers (except the mark case which doesn't care). 3) Rename _tdb_unlock() to tdb_nest_unlock(), make it non-static and move the allrecord out to the callers (except mark again). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> |
||
---|---|---|
.. | ||
async_req | ||
compression | ||
crypto | ||
nss_wrapper | ||
popt | ||
replace | ||
smbconf | ||
socket_wrapper | ||
subunit | ||
talloc | ||
tdb | ||
tdr | ||
tevent | ||
torture | ||
tsocket | ||
uid_wrapper | ||
util | ||
zlib | ||
README |
compression - Various compression algorithms (MSZIP, lzxpress) nss_wrapper - Wrapper for the user and group NSS API allowing the use of other data sources. popt - Command-line option parsing library replace - Provides replacements for standard (POSIX, C99) functions not provided by the host platform. socket_wrapper - Wrapper library allowing TCP/IP traffic to be redirected over Unix domain sockets. talloc - Hierarchical pool based memory allocator tdb - Simple but fast key/value database library, supporting multiple writers torture - Simple unit testing helper library