summaryrefslogtreecommitdiffstats
path: root/source/passdb
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-03-10 21:08:29 +0100
committerKarolin Seeger <kseeger@samba.org>2008-03-18 12:10:48 +0100
commit3e1ac6b997d9202101457299fb53462b830167d0 (patch)
tree97acad8a9cd211f7b32d550d46e7cab8438a46d0 /source/passdb
parent2c2bc51debe9792c60eb29d5d820c5159eafbdbe (diff)
downloadsamba-3e1ac6b997d9202101457299fb53462b830167d0.tar.gz
samba-3e1ac6b997d9202101457299fb53462b830167d0.tar.xz
samba-3e1ac6b997d9202101457299fb53462b830167d0.zip
Use a separate tdb for mutexes
Another preparation to convert secrets.c to dbwrap: The dbwrap API does not provide a sane tdb_lock_with_timeout abstraction. In the clustered case the DC mutex is needed per-node anyway, so it is perfectly fine to use a local mutex only. (cherry picked from commit f94a63cd8f94490780ad9331da229c0bcb2ca5d6)
Diffstat (limited to 'source/passdb')
-rw-r--r--source/passdb/secrets.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/source/passdb/secrets.c b/source/passdb/secrets.c
index 2c0d6487165..8448f795b49 100644
--- a/source/passdb/secrets.c
+++ b/source/passdb/secrets.c
@@ -1029,37 +1029,6 @@ NTSTATUS secrets_trusted_domains(TALLOC_CTX *mem_ctx, uint32 *num_domains,
}
/*******************************************************************************
- Lock the secrets tdb based on a string - this is used as a primitive form of mutex
- between smbd instances.
-*******************************************************************************/
-
-bool secrets_named_mutex(const char *name, unsigned int timeout)
-{
- int ret = 0;
-
- if (!secrets_init()) {
- return false;
- }
-
- ret = tdb_lock_bystring_with_timeout(tdb, name, timeout);
- if (ret == 0) {
- DEBUG(10,("secrets_named_mutex: got mutex for %s\n", name ));
- }
-
- return (ret == 0);
-}
-
-/*******************************************************************************
- Unlock a named mutex.
-*******************************************************************************/
-
-void secrets_named_mutex_release(const char *name)
-{
- tdb_unlock_bystring(tdb, name);
- DEBUG(10,("secrets_named_mutex: released mutex for %s\n", name ));
-}
-
-/*******************************************************************************
Store a complete AFS keyfile into secrets.tdb.
*******************************************************************************/