summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/lib/gencache.c2
-rw-r--r--source4/passdb/secrets.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/gencache.c b/source4/lib/gencache.c
index b6d62977ad..2db66b7564 100644
--- a/source4/lib/gencache.c
+++ b/source4/lib/gencache.c
@@ -363,7 +363,7 @@ void gencache_iterate(void (*fn)(const char* key, const char *value, time_t time
int gencache_lock_entry( const char *key )
{
- return tdb_lock_bystring(cache->tdb, key, 0);
+ return tdb_lock_bystring(cache->tdb, key);
}
/********************************************************************
diff --git a/source4/passdb/secrets.c b/source4/passdb/secrets.c
index b7d05dd98c..d9501b866c 100644
--- a/source4/passdb/secrets.c
+++ b/source4/passdb/secrets.c
@@ -139,7 +139,7 @@ BOOL secrets_named_mutex(const char *name, uint_t timeout, size_t *p_ref_count)
return False;
if (ref_count == 0) {
- ret = tdb_lock_bystring(tdb->tdb, name, timeout);
+ ret = tdb_lock_bystring(tdb->tdb, name);
if (ret == 0)
DEBUG(10,("secrets_named_mutex: got mutex for %s\n", name ));
}