From 06b0bcdf8d0abba2f0625ff458adb56bf471b9e0 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 4 Nov 2019 13:13:02 +0100 Subject: [PATCH] smbd: Remove share_mode_data->record In the future, there won't be a record anymore Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/librpc/idl/open_files.idl | 1 - source3/locking/share_mode_lock.c | 8 -------- 2 files changed, 9 deletions(-) diff --git a/source3/librpc/idl/open_files.idl b/source3/librpc/idl/open_files.idl index d3e537a9d42..8742a38dfa6 100644 --- a/source3/librpc/idl/open_files.idl +++ b/source3/librpc/idl/open_files.idl @@ -65,7 +65,6 @@ interface open_files timespec changed_write_time; [skip] boolean8 fresh; [skip] boolean8 modified; - [ignore] db_record *record; [ignore] file_id id; /* In memory key used to lookup cache. */ } share_mode_data; diff --git a/source3/locking/share_mode_lock.c b/source3/locking/share_mode_lock.c index 3046fe775a8..defa538b452 100644 --- a/source3/locking/share_mode_lock.c +++ b/source3/locking/share_mode_lock.c @@ -564,7 +564,6 @@ static NTSTATUS get_static_share_mode_data( } d->id = id; - d->record = rec; static_share_mode_data = d; @@ -685,13 +684,6 @@ static int share_mode_lock_destructor(struct share_mode_lock *lck) smb_panic("Could not store share mode data\n"); } - /* - * Drop the locking.tdb lock before moving the share_mode_data - * to memcache - */ - SMB_ASSERT(static_share_mode_data->record == static_share_mode_record); - static_share_mode_data->record = NULL; - if (static_share_mode_record_talloced) { TALLOC_FREE(static_share_mode_record); } -- 2.47.3