1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
samba-mirror/source3/locking
Stefan Metzmacher 87fddbad78 smbd/locking: make use of the same tdb hash_size and flags for all SMB related tdb's
It's good to have a consistent set of hash_size/flags for all aspects of
an open file handle. Currently we're using 4 databases:
smbXsrv_open_global.tdb, leases.tdb, locking.tdb and brlock.tdb.

While at it also crank up the hashsize if the smbXsrv_tcon and smbXsrv_session
TDBs. The default TDB hash size is insanely small and disk space is cheap these
days, by going with the much larger hash size we get O(1) lookup instead of O(n)
for moderate to large loads with a few thousand objects.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Mon Dec 19 16:40:15 UTC 2022 on sn-devel-184
2022-12-19 16:40:15 +00:00
..
brlock.c smbd/locking: make use of the same tdb hash_size and flags for all SMB related tdb's 2022-12-19 16:40:15 +00:00
leases_db.c smbd/locking: make use of the same tdb hash_size and flags for all SMB related tdb's 2022-12-19 16:40:15 +00:00
leases_db.h smbd: Add quick leases_db_get_current_state() 2019-09-17 22:49:36 +00:00
leases_util.c s3:smbd: inline fsp_lease_type_is_exclusive() logic into contend_level2_oplocks_begin_default 2022-08-19 18:41:34 +00:00
locking.c smbd: Remove source3/smbd/statcache.c 2022-12-14 22:54:29 +00:00
posix.c s3/locking: Revert "s3:locking: Remove dead code" 2022-12-09 23:11:38 +00:00
proto.h s3:smbd: inline fsp_lease_type_is_exclusive() logic into contend_level2_oplocks_begin_default 2022-08-19 18:41:34 +00:00
share_mode_lock_private.h s3:locking: make 'struct share_mode_lock' private to share_mode_lock.c 2022-09-20 00:34:35 +00:00
share_mode_lock.c smbd/locking: make use of the same tdb hash_size and flags for all SMB related tdb's 2022-12-19 16:40:15 +00:00
share_mode_lock.h s3:locking: split out del_share_mode_open_id() 2022-12-09 23:11:38 +00:00