]> 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)
committerGünther Deschner <gd@samba.org>
Thu, 19 Sep 2024 18:27:33 +0000 (18:27 +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>
source3/smbd/open.c

index 0e36db0a85efebe3de2dca88e5efb19cbe620607..0cd9262fb6ec2b9a9132c98a0984c004cd70d48a 100644 (file)
@@ -2946,8 +2946,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.