diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-04-17 11:49:06 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:16:23 -0500 |
commit | b9c6e3f55602fa505859a4b2cd137b74105d685f (patch) | |
tree | 3a25ebba6391f75a155a703a11929cb36012c916 /source/printing/notify.c | |
parent | d3d388180dacb7b9db5d122bc3f2ce1045434f53 (diff) | |
download | samba-b9c6e3f55602fa505859a4b2cd137b74105d685f.tar.gz |
r15101: Little step towards getting Samba4 tdb into 3: tdb_lock_bystring does not
have the timeout argument in Samba4. Add a new routine
tdb_lock_bystring_with_timeout.
Volker
Diffstat (limited to 'source/printing/notify.c')
-rw-r--r-- | source/printing/notify.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/printing/notify.c b/source/printing/notify.c index e71d9e6f259..f27eb2011ff 100644 --- a/source/printing/notify.c +++ b/source/printing/notify.c @@ -520,7 +520,7 @@ BOOL print_notify_pid_list(const char *printername, TALLOC_CTX *mem_ctx, size_t return False; tdb = pdb->tdb; - if (tdb_read_lock_bystring(tdb, NOTIFY_PID_LIST_KEY, 10) == -1) { + if (tdb_read_lock_bystring_with_timeout(tdb, NOTIFY_PID_LIST_KEY, 10) == -1) { DEBUG(0,("print_notify_pid_list: Failed to lock printer %s database\n", printername)); if (pdb) |