1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

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 <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
This commit is contained in:
Amitay Isaacs 2016-04-19 17:37:46 +10:00 committed by Martin Schwenke
parent 3888439971
commit 3ed3d460b7

View File

@ -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;
}