Be more forgiving on client oplock break failure (as Windows does). Remove a global.
[mat/samba.git] / source3 / modules / onefs_open.c
index f7d6e0700f93d222196c26d0e4a53e8db1f51325..ac3c5b2024c7360580c7a6795dbffe3c1144b20d 100644 (file)
@@ -591,7 +591,7 @@ NTSTATUS onefs_open_file_ntcreate(connection_struct *conn,
        }
 
        /* Ignore oplock requests if oplocks are disabled. */
-       if (!lp_oplocks(SNUM(conn)) || global_client_failed_oplock_break ||
+       if (!lp_oplocks(SNUM(conn)) ||
            IS_VETO_OPLOCK_PATH(conn, smb_fname->base_name)) {
                /* Mask off everything except the private Samba bits. */
                oplock_request &= SAMBA_PRIVATE_OPLOCK_MASK;