summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-03-27 00:02:49 +0000
committerJeremy Allison <jra@samba.org>2002-03-27 00:02:49 +0000
commit94c52a00525c55db83d48c0ef76c3eb12de0af2b (patch)
tree1e0f6fcd224daa74f558d38528abd69a0e5c7716
parent57b81e1a36559afa6a3a1bdef9c700926f4573bd (diff)
downloadsamba-94c52a00525c55db83d48c0ef76c3eb12de0af2b.tar.gz
samba-94c52a00525c55db83d48c0ef76c3eb12de0af2b.tar.bz2
samba-94c52a00525c55db83d48c0ef76c3eb12de0af2b.zip
Moved debug messages for grabbing/releasing mutex.
Jeremy. (This used to be commit e144c174eafc18f236c848b8f3a2c6382796f5a9)
-rw-r--r--source3/auth/auth_domain.c2
-rw-r--r--source3/lib/messages.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/source3/auth/auth_domain.c b/source3/auth/auth_domain.c
index 38b48d85ad..af353ef812 100644
--- a/source3/auth/auth_domain.c
+++ b/source3/auth/auth_domain.c
@@ -92,8 +92,6 @@ static NTSTATUS connect_to_domain_password_server(struct cli_state **cli,
return NT_STATUS_UNSUCCESSFUL;
}
- DEBUG(10,("connect_to_domain_password_server: got mutex for %s\n", server));
-
/* Attempt connection */
result = cli_full_connection(cli, global_myname, server,
&dest_ip, 0, "IPC$", "IPC", "", "", "", 0);
diff --git a/source3/lib/messages.c b/source3/lib/messages.c
index 7d0da4b158..8602c2f32d 100644
--- a/source3/lib/messages.c
+++ b/source3/lib/messages.c
@@ -508,6 +508,9 @@ BOOL message_named_mutex(char *name, unsigned int timeout)
return False;
}
+ if (ret == 0)
+ DEBUG(10,("message_named_mutex: got mutex for %s\n", name ));
+
return (ret == 0);
}
@@ -525,6 +528,7 @@ void message_named_mutex_release(char *name)
key.dsize = strlen(name)+1;
tdb_chainunlock(tdb, key);
+ DEBUG(10,("message_named_mutex: released mutex for %s\n", name ));
}
/** @} **/