mirror of
https://github.com/samba-team/samba.git
synced 2025-03-01 04:58:35 +03:00
s3:smbd: let smbXsrv_{session,tcon,open}_global.tdb use TDB_VOLATILE
This avoids using fcntl() locks for dbwrap_delete() BUG: https://bugzilla.samba.org/show_bug.cgi?id=15125 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
3ef567472e
commit
170a4812a6
@ -67,6 +67,7 @@ NTSTATUS smbXsrv_open_global_init(void)
|
||||
0, /* hash_size */
|
||||
TDB_DEFAULT |
|
||||
TDB_CLEAR_IF_FIRST |
|
||||
TDB_VOLATILE |
|
||||
TDB_INCOMPATIBLE_HASH,
|
||||
O_RDWR | O_CREAT, 0600,
|
||||
DBWRAP_LOCK_ORDER_1,
|
||||
|
@ -77,6 +77,7 @@ NTSTATUS smbXsrv_session_global_init(struct messaging_context *msg_ctx)
|
||||
0, /* hash_size */
|
||||
TDB_DEFAULT |
|
||||
TDB_CLEAR_IF_FIRST |
|
||||
TDB_VOLATILE |
|
||||
TDB_INCOMPATIBLE_HASH,
|
||||
O_RDWR | O_CREAT, 0600,
|
||||
DBWRAP_LOCK_ORDER_1,
|
||||
|
@ -64,6 +64,7 @@ NTSTATUS smbXsrv_tcon_global_init(void)
|
||||
0, /* hash_size */
|
||||
TDB_DEFAULT |
|
||||
TDB_CLEAR_IF_FIRST |
|
||||
TDB_VOLATILE |
|
||||
TDB_INCOMPATIBLE_HASH,
|
||||
O_RDWR | O_CREAT, 0600,
|
||||
DBWRAP_LOCK_ORDER_1,
|
||||
|
Loading…
x
Reference in New Issue
Block a user