durable reconnect ... get_existing_share_mode_lock
authorStefan Metzmacher <metze@samba.org>
Wed, 22 Feb 2012 10:25:19 +0000 (11:25 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 10 May 2012 16:41:56 +0000 (18:41 +0200)
source3/smbd/smb2_create.c

index ea7ae1ef674d571c6a3c5158d75a6d9d961de5ef..fc7ca9fb7711f3d280a7e1c48f8450b7bc207553 100644 (file)
@@ -477,8 +477,8 @@ DEBUG(0, ("OBNOX - durable_reconnect enter: (%s:%s)\n", __location__, __FUNCTION
        sharemode_lock = fetch_share_mode_unlocked(mem_ctx,
                                                   op->global->backend_file_id);
 */
-       sharemode_lock = get_share_mode_lock(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) {
                /* TODO: use/create other fetch func with better error code */
                return NT_STATUS_OBJECT_NAME_NOT_FOUND;