From: Michael Adam Date: Fri, 2 Mar 2012 21:44:41 +0000 (+0100) Subject: s3:smbd:smb2_create: some cleanup of smb2_create_durable_reconnect X-Git-Url: http://git.samba.org/?p=metze%2Fsamba%2Fwip.git;a=commitdiff_plain;h=5d38fd1887badcb33f7c7d308a009c464cba5378 s3:smbd:smb2_create: some cleanup of smb2_create_durable_reconnect --- diff --git a/source3/smbd/smb2_create.c b/source3/smbd/smb2_create.c index cb72477cb41a..bef17ae0384c 100644 --- a/source3/smbd/smb2_create.c +++ b/source3/smbd/smb2_create.c @@ -474,13 +474,6 @@ DEBUG(0, ("OBNOX - durable_reconnect enter: (%s:%s)\n", __location__, __FUNCTION /* 1. check entry in locking.tdb */ - /* - * Q: fetch with lock right away? - */ -/* - sharemode_lock = fetch_share_mode_unlocked(mem_ctx, - op->global->backend_file_id); -*/ sharemode_lock = get_existing_share_mode_lock(mem_ctx, op->global->backend_file_id); if (sharemode_lock == NULL) { @@ -518,18 +511,6 @@ DEBUG(0, ("OBNOX - durable_reconnect: serverid exists - denying access to durabl /* 2. proceed with opening file */ - /* - * refetch with lock and update the pid // fetch with lock right away above - */ -/* - talloc_free(sharemode_lock); - sharemode_lock = get_share_mode_lock(mem_ctx, - op->global->backend_file_id); - if (sharemode_lock == NULL) { - return NT_STATUS_OBJECT_NAME_NOT_FOUND; - } -*/ - /* * circumstances seems ok, do the open */