summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-04-10 18:44:27 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:15:57 -0500
commit6c237e04b2b6be22465563cb77fd6de35f52fcc4 (patch)
tree46cddd43f256ab675e3bd4e70935229d4f823e97
parent22dbd67708f1651a2341d70ce576fac360affccf (diff)
downloadsamba-6c237e04b2b6be22465563cb77fd6de35f52fcc4.tar.gz
samba-6c237e04b2b6be22465563cb77fd6de35f52fcc4.tar.bz2
samba-6c237e04b2b6be22465563cb77fd6de35f52fcc4.zip
r15020: Fix issue with samba4 netbench torture tester,
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. (This used to be commit dc6a13da33a031d0c2374b692737dbe9215f0f74)
-rw-r--r--source3/smbd/reply.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index 040f7710fd..3bad4829b9 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -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));