From 3ed3d460b7aeb12ed44455d9a77452c74e38517b Mon Sep 17 00:00:00 2001 From: Amitay Isaacs Date: Tue, 19 Apr 2016 17:37:46 +1000 Subject: [PATCH] ctdb-client: If g_lock lock conflicts, try again sooner Instead of delaying for 1 second, try to get g_lock lock again after 1 milli-second. Signed-off-by: Amitay Isaacs Reviewed-by: Martin Schwenke --- ctdb/client/client_db.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctdb/client/client_db.c b/ctdb/client/client_db.c index 09d9f23ecac..6a21e0b2dca 100644 --- a/ctdb/client/client_db.c +++ b/ctdb/client/client_db.c @@ -1366,7 +1366,7 @@ static void ctdb_g_lock_lock_checked(struct tevent_req *subreq) if (val == 1) { /* server process exists, need to retry */ subreq = tevent_wakeup_send(state, state->ev, - tevent_timeval_current_ofs(1,0)); + tevent_timeval_current_ofs(0,1000)); if (tevent_req_nomem(subreq, req)) { return; } -- 2.34.1