1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
samba-mirror/lib/tdb/common
Volker Lendecke a6f1532d7f tdb: Do lock upgrades properly
When a process holds a readlock and wants to upgrade, this needs to be
reflected in the underlying lock. Without this, it is possible to cheat:
One process holds a readlock, and another process wants to write this
record. All the writer has to do is take a readonly lock on the key and
then do the store.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2017-04-10 20:44:21 +02:00
..
check.c tdb: introduce TDB_SUPPORTED_FEATURE_FLAGS 2014-05-22 21:05:15 +02:00
dump.c tdb: tdbtool: dump record magic with fixed number of 8 hex digits 2014-02-14 15:53:25 -08:00
error.c tdb: Fix blank line endings 2012-12-21 11:54:53 +01:00
freelist.c tdb: defragment the freelist in tdb_allocate_from_freelist() 2014-06-26 12:16:03 +02:00
freelistcheck.c tdb: Use tdb_null in freelistcheck 2013-02-19 15:46:45 +01:00
hash.c
io.c tdb: add TDB_MUTEX_LOCKING support 2014-05-22 21:05:15 +02:00
lock.c tdb: Do lock upgrades properly 2017-04-10 20:44:21 +02:00
mutex.c tdb: Fix mutexes on FreeBSD 2016-11-29 23:59:52 +01:00
open.c tdb: Refuse to load a database with hash size 0 2015-12-18 08:26:24 +01:00
rescue.c tdb: Remove "header" from tdb_context 2013-02-05 13:18:28 +01:00
summary.c tdb: add TDB_MUTEX_LOCKING support 2014-05-22 21:05:15 +02:00
tdb_private.h tdb: Add tdb_trace_1plusn_rec_flag_ret 2016-08-29 19:03:27 +02:00
tdb.c tdb: Use tdb_storev in tdb_append 2016-08-29 19:03:27 +02:00
transaction.c tdb: allow transactions on on tdb's with TDB_MUTEX_LOCKING 2014-12-19 09:20:06 +01:00
traverse.c tdb: Don't malloc for every record in traverse 2016-07-15 00:52:00 +02:00