summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1997-10-02 03:26:07 +0000
committerJeremy Allison <jra@samba.org>1997-10-02 03:26:07 +0000
commitfbd5dded7dd027faa549f854b45f47b72af47528 (patch)
treeda8e5f56bcb91c6fad7cccb3fb92ee679525f6d3 /source3/smbd
parent85097a7c177977c3e0cb9b2ad41642dba5f917ac (diff)
downloadsamba-fbd5dded7dd027faa549f854b45f47b72af47528.tar.gz
samba-fbd5dded7dd027faa549f854b45f47b72af47528.tar.bz2
samba-fbd5dded7dd027faa549f854b45f47b72af47528.zip
Added debug message for oplock_break().
Jeremy (jallison@whistle.com) (This used to be commit 4f29dfbc791f1f08c8c44a6fbdd0bc31892455dd)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/server.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index 7b04d228c3..a3214e16cb 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -89,7 +89,7 @@ static int num_connections_open = 0;
int oplock_sock = -1;
uint16 oplock_port = 0;
/* Current number of oplocks we have outstanding. */
-uint32 global_oplocks_open = 0;
+int32 global_oplocks_open = 0;
#endif /* USE_OPLOCKS */
BOOL global_oplock_break = False;
@@ -2606,6 +2606,9 @@ BOOL oplock_break(uint32 dev, uint32 inode)
time_t start_time;
BOOL shutdown_server = False;
+ DEBUG(5,("oplock_break: called for dev = %x, inode = %x. Current \
+global_oplocks_open = %d\n", dev, inode, global_oplocks_open));
+
if(inbuf == NULL)
{
inbuf = (char *)malloc(BUFFER_SIZE + SAFETY_MARGIN);
@@ -2767,6 +2770,9 @@ dev = %x, inode = %x\n", fnum, dev, inode));
abort();
}
+ DEBUG(5,("oplock_break: returning success for dev = %x, inode = %x. Current \
+global_oplocks_open = %d\n", dev, inode, global_oplocks_open));
+
return True;
}