smbd: Add debugs to brlock.c
[mat/samba.git] / source3 / smbd / oplock.c
index f18ac657b8d3d68eed6ead5eb33b3cbb277b33c8..fc6b0efddac74e1c6f42b505d05b6106f2481e31 100644 (file)
@@ -157,6 +157,9 @@ bool remove_oplock(files_struct *fsp)
        bool ret;
        struct share_mode_lock *lck;
 
+       DEBUG(10, ("remove_oplock called for %s\n",
+                  fsp_str_dbg(fsp)));
+
        /* Remove the oplock flag from the sharemode. */
        lck = get_existing_share_mode_lock(talloc_tos(), fsp->file_id);
        if (lck == NULL) {
@@ -224,6 +227,9 @@ bool downgrade_oplock(files_struct *fsp)
        struct share_mode_lock *lck;
        struct byte_range_lock *brl;
 
+       DEBUG(10, ("downgrade_oplock called for %s\n",
+                  fsp_str_dbg(fsp)));
+
        lck = get_existing_share_mode_lock(talloc_tos(), fsp->file_id);
        if (lck == NULL) {
                DEBUG(0,("downgrade_oplock: failed to lock share entry for "