ldb: allow a timeout of -1 result in no timeout timer at all.
authorStefan Metzmacher <metze@samba.org>
Fri, 22 Jan 2016 07:53:57 +0000 (08:53 +0100)
committerGarming Sam <garming@samba.org>
Wed, 17 Feb 2016 02:43:22 +0000 (03:43 +0100)
commit2b1cd4a1147a8d5ba10ddcef4c2d258df2bd5dd4
tree0f2b606aca500e6891c90a5bc41642eca58ec02f
parent5db9f865bca818da8d2334208f3141f7f5c7286d
ldb: allow a timeout of -1 result in no timeout timer at all.

This is required in order to have long running async searches,
e.g. with LDB_CONTROL_NOTIFICATION_OID.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/ldb/ldb_ldap/ldb_ldap.c
lib/ldb/ldb_sqlite3/ldb_sqlite3.c
lib/ldb/ldb_tdb/ldb_tdb.c