source3/lib/util_tdb.c: operation timeout support for TDB2.
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 20 Jun 2011 09:10:33 +0000 (18:40 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 20 Jun 2011 09:18:35 +0000 (11:18 +0200)
commitcd962710368b0ea0a4899cc5f70fcdf0d5f751f1
tree3d6e0c256d086b20a998d38bb6599b1893dbe32b
parent6b3f9ac0f878199ba0ab6855a65fda369e95ae27
source3/lib/util_tdb.c: operation timeout support for TDB2.

TDB2 doesn't have (the racy) signal pointer; the new method is to
override the locking callbacks and do the timeout internally.

The technique here is to invalidate the struct flock when the timeout
occurs, so it works even if it happens before we enter the fcntl() call.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
source3/lib/util_tdb.c