From 6ab97dc69dab505699ef44d43a19fa7835e28751 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 6 Feb 2007 17:28:03 +0000 Subject: r21181: Add some debug, fix the NT_STATUS_IO_TIMEOUT problems in the RAW-NOTIFY test in the build farm. Volker (This used to be commit 3dd1bf667f42bd03a7b7159b9c2ad9ccbd269130) --- source3/smbd/notify_internal.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'source3/smbd/notify_internal.c') diff --git a/source3/smbd/notify_internal.c b/source3/smbd/notify_internal.c index 885c85fbc8..72b9604935 100644 --- a/source3/smbd/notify_internal.c +++ b/source3/smbd/notify_internal.c @@ -171,6 +171,7 @@ static NTSTATUS notify_load(struct notify_context *notify) (ndr_pull_flags_fn_t)ndr_pull_notify_array); if (DEBUGLEVEL >= 10) { + DEBUG(10, ("notify_load:\n")); NDR_PRINT_DEBUG(notify_array, notify->array); } @@ -225,6 +226,11 @@ static NTSTATUS notify_save(struct notify_context *notify) return status; } + if (DEBUGLEVEL >= 10) { + DEBUG(10, ("notify_save:\n")); + NDR_PRINT_DEBUG(notify_array, notify->array); + } + dbuf.dptr = (char *)blob.data; dbuf.dsize = blob.length; @@ -667,11 +673,12 @@ void notify_trigger(struct notify_context *notify, if (NT_STATUS_EQUAL( status, NT_STATUS_INVALID_HANDLE)) { + struct server_id server = e->server; DEBUG(10, ("Deleting notify entries for " "process %s because it's gone\n", procid_str_static(&e->server.id))); - notify_remove_all(notify, &e->server); + notify_remove_all(notify, &server); goto again; } } -- cgit