smbd: Avoid calling notify_filter_string for low debuglevels
authorVolker Lendecke <vl@samba.org>
Mon, 2 Dec 2013 20:32:47 +0000 (21:32 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 4 Dec 2013 19:09:39 +0000 (20:09 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Wed Dec  4 20:09:39 CET 2013 on sn-devel-104

source3/smbd/smb2_notify.c

index 81aa6152cc5b9a44fad8bdcc9881b825fad87fc2..77399efbab2399196aa6f7d677497141fcd4de78 100644 (file)
@@ -195,7 +195,7 @@ static struct tevent_req *smbd_smb2_notify_send(TALLOC_CTX *mem_ctx,
        state->smbreq = smbreq;
        smbreq->async_priv = (void *)req;
 
-       {
+       if (DEBUGLEVEL >= 3) {
                char *filter_string;
 
                filter_string = notify_filter_string(NULL, in_completion_filter);