summaryrefslogtreecommitdiff
path: root/source3/groupdb
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-10-04 22:53:18 +0000
committerJeremy Allison <jra@samba.org>2002-10-04 22:53:18 +0000
commit3665777a5bc7ffa92f64ba17daf4cc66c3607198 (patch)
tree125ab749ead948e0a453bbfb4901afb716150eb7 /source3/groupdb
parentcc169cc66824b5a4e33fca8fbd6bd733b7282639 (diff)
downloadsamba-3665777a5bc7ffa92f64ba17daf4cc66c3607198.tar.gz
samba-3665777a5bc7ffa92f64ba17daf4cc66c3607198.tar.bz2
samba-3665777a5bc7ffa92f64ba17daf4cc66c3607198.zip
Add a timeout to tdb_lock_bystring(). Ensure we never have more than
MAX_PRINT_JOBS in a queue. Jeremy. (This used to be commit 9fe3c0b90d4bff2217e3cb5a34b4683ca314c06e)
Diffstat (limited to 'source3/groupdb')
-rw-r--r--source3/groupdb/mapping.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/groupdb/mapping.c b/source3/groupdb/mapping.c
index 5641431246..0f05316949 100644
--- a/source3/groupdb/mapping.c
+++ b/source3/groupdb/mapping.c
@@ -223,7 +223,7 @@ static BOOL init_group_mapping(void)
local_pid = sys_getpid();
/* handle a Samba upgrade */
- tdb_lock_bystring(tdb, vstring);
+ tdb_lock_bystring(tdb, vstring, 0);
/* Cope with byte-reversed older versions of the db. */
vers_id = tdb_fetch_int32(tdb, vstring);