From: Jeremy Allison Date: Mon, 10 Apr 2006 18:44:27 +0000 (+0000) Subject: r15020: Fix issue with samba4 netbench torture tester, X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=9e2efae76b11b9e6dc784e49ff9b57818a07e6e2;p=jpeach%2Fsamba.git 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. --- diff --git a/source/smbd/reply.c b/source/smbd/reply.c index 040f7710fdd..3bad4829b96 100644 --- a/source/smbd/reply.c +++ b/source/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));