From: Ralph Boehme Date: Fri, 5 Apr 2024 10:15:28 +0000 (+0200) Subject: smbd: log share_mode_watch_recv() errors as errors X-Git-Tag: ldb-2.8.2~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71568683ca70986296a7c8b06b755c380f2e1620;p=thirdparty%2Fsamba.git smbd: log share_mode_watch_recv() errors as errors BUG: https://bugzilla.samba.org/show_bug.cgi?id=15624 Pair-Programmed-With: Stefan Metzmacher Signed-off-by: Ralph Boehme Signed-off-by: Stefan Metzmacher Reviewed-by: Guenther Deschner (cherry picked from commit b45e78871aadca6ae33475bee890736838f44219) --- diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 6c410c3e70b..5a0fc4626bd 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -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.