r15020: Fix issue with samba4 netbench torture tester,
authorJeremy Allison <jra@samba.org>
Mon, 10 Apr 2006 18:44:27 +0000 (18:44 +0000)
committerJeremy Allison <jra@samba.org>
Mon, 10 Apr 2006 18:44:27 +0000 (18:44 +0000)
it sends break replies to "break to none from level2"
requests and it shouldn't. Just don't log a debug
level zero message.
Jeremy.

source/smbd/reply.c

index 040f7710fddc490e82a66c7770b9eed64a809613..3bad4829b967712f72d8b4f496217e4558efdafd 100644 (file)
@@ -5247,7 +5247,14 @@ int reply_lockingX(connection_struct *conn, char *inbuf, char *outbuf,
                 */
                
                if (fsp->oplock_type == 0) {
-                       DEBUG(0,("reply_lockingX: Error : oplock break from "
+
+                       /* The Samba4 nbench simulator doesn't understand
+                          the difference between break to level2 and break
+                          to none from level2 - it sends oplock break
+                          replies in both cases. Don't keep logging an error
+                          message here - just ignore it. JRA. */
+
+                       DEBUG(5,("reply_lockingX: Error : oplock break from "
                                 "client for fnum = %d (oplock=%d) and no "
                                 "oplock granted on this file (%s).\n",
                                 fsp->fnum, fsp->oplock_type, fsp->fsp_name));