From 47f65d5829167f061756621e50b480a8c16e4fbc Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 13 Sep 2013 14:13:51 +0200 Subject: smbd: Add debugs to brlock.c Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/smbd/oplock.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source3/smbd') diff --git a/source3/smbd/oplock.c b/source3/smbd/oplock.c index f18ac657b8..fc6b0efdda 100644 --- a/source3/smbd/oplock.c +++ b/source3/smbd/oplock.c @@ -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 " -- cgit