r21181: Add some debug, fix the NT_STATUS_IO_TIMEOUT problems in the RAW-NOTIFY test
authorVolker Lendecke <vlendec@samba.org>
Tue, 6 Feb 2007 17:28:03 +0000 (17:28 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:17:46 +0000 (12:17 -0500)
in the build farm.

Volker
(This used to be commit 3dd1bf667f42bd03a7b7159b9c2ad9ccbd269130)

source3/smbd/notify_internal.c

index 885c85fbc8ad9d5dac307601550df1dd3fe42a15..72b96049350591a4349f47bf3fd60a4c5cd972b5 100644 (file)
@@ -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;
                        }
                }