From f74ea2b78b2aaa4621936c87487f2e9c2072144f Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 4 May 2000 09:32:21 +0000 Subject: parameterize the lock timeout (This used to be commit 98ad4095ccc8d0349d05e6e9223eaad057029626) --- source3/utils/locktest.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source3/utils/locktest.c b/source3/utils/locktest.c index d52d023f25..8738116a04 100644 --- a/source3/utils/locktest.c +++ b/source3/utils/locktest.c @@ -40,6 +40,7 @@ static BOOL analyze; #define RANGE_MULTIPLE 32 #define NCONNECTIONS 2 #define NFILES 2 +#define LOCK_TIMEOUT 0 struct record { char r1, r2; @@ -218,10 +219,10 @@ static BOOL test_one(struct cli_state *cli[2][2], /* set a lock */ ret1 = cli_lock(cli[0][conn], fnum[0][conn][f], - start, len, 0, op); + start, len, LOCK_TIMEOUT, op); ret2 = cli_lock(cli[1][conn], fnum[1][conn][f], - start, len, 0, op); + start, len, LOCK_TIMEOUT, op); if (showall || ret1 != ret2) { printf("lock conn=%d f=%d range=%d:%d op=%s -> %d:%d\n", conn, f, start, len, op==READ_LOCK?"READ_LOCK":"WRITE_LOCK", -- cgit