]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:smbd: let smbXsrv_{session,tcon,open}_global.tdb use TDB_VOLATILE
authorStefan Metzmacher <metze@samba.org>
Thu, 30 Jun 2022 10:25:47 +0000 (10:25 +0000)
committerJeremy Allison <jra@samba.org>
Tue, 20 Sep 2022 00:34:34 +0000 (00:34 +0000)
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>
source3/smbd/smbXsrv_open.c
source3/smbd/smbXsrv_session.c
source3/smbd/smbXsrv_tcon.c

index f8d4c88fe2d47ad9c2e42d60ca2c862f5c7175b7..91f2f8a83cd06145ea45b3440789a0815cf127f4 100644 (file)
@@ -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,
index 59c6b49f2d99058a2100491b896e081f256e80d9..cf09b56803a11abd2fb10c6d6f2e01748fa35379 100644 (file)
@@ -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,
index 8707082edd6306540bd6230094890c95663c843e..0aa35602b6c5224b78d9a9186293f3c631687703 100644 (file)
@@ -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,