s3:smbd:smb2_create: some cleanup of smb2_create_durable_reconnect
authorMichael Adam <obnox@samba.org>
Fri, 2 Mar 2012 21:44:41 +0000 (22:44 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 10 May 2012 16:42:03 +0000 (18:42 +0200)
source3/smbd/smb2_create.c

index cb72477cb41ab42a4389dec61c97f276efca9bf0..bef17ae0384cd9ee598b114741c006f3c8d46be9 100644 (file)
@@ -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
         */