]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: log share_mode_watch_recv() errors as errors
authorRalph Boehme <slow@samba.org>
Fri, 5 Apr 2024 10:15:28 +0000 (12:15 +0200)
committerJule Anger <janger@samba.org>
Wed, 2 Oct 2024 14:34:13 +0000 (14:34 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15624

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

Signed-off-by: Ralph Boehme <slow@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
(cherry picked from commit b45e78871aadca6ae33475bee890736838f44219)

source3/smbd/open.c

index 6c410c3e70baf210d834a7a95ccd7ca67eada11c..5a0fc4626bddb48e99693069ad75d69aed1001b0 100644 (file)
@@ -2976,8 +2976,9 @@ static void defer_open_done(struct tevent_req *req)
        status = share_mode_watch_recv(req, NULL, NULL);
        TALLOC_FREE(req);
        if (!NT_STATUS_IS_OK(status)) {
-               DEBUG(5, ("dbwrap_watched_watch_recv returned %s\n",
-                         nt_errstr(status)));
+               DBG_ERR("share_mode_watch_recv() returned %s, "
+                       "rescheduling mid %" PRIu64 "\n",
+                       nt_errstr(status), state->mid);
                /*
                 * Even if it failed, retry anyway. TODO: We need a way to
                 * tell a re-scheduled open about that error.