From: Stefan Metzmacher Date: Thu, 30 Jun 2022 10:25:47 +0000 (+0000) Subject: s3:smbd: let smbXsrv_{session,tcon,open}_global.tdb use TDB_VOLATILE X-Git-Tag: talloc-2.4.0~921 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=170a4812a6b05b667ea6fd7a73d417e09e24e010;p=thirdparty%2Fsamba.git 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 Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/smbXsrv_open.c b/source3/smbd/smbXsrv_open.c index f8d4c88fe2d..91f2f8a83cd 100644 --- a/source3/smbd/smbXsrv_open.c +++ b/source3/smbd/smbXsrv_open.c @@ -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, diff --git a/source3/smbd/smbXsrv_session.c b/source3/smbd/smbXsrv_session.c index 59c6b49f2d9..cf09b56803a 100644 --- a/source3/smbd/smbXsrv_session.c +++ b/source3/smbd/smbXsrv_session.c @@ -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, diff --git a/source3/smbd/smbXsrv_tcon.c b/source3/smbd/smbXsrv_tcon.c index 8707082edd6..0aa35602b6c 100644 --- a/source3/smbd/smbXsrv_tcon.c +++ b/source3/smbd/smbXsrv_tcon.c @@ -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,