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

ctdb_control should use the provided timeout and not hardcode to 1.0

seconds

(This used to be ctdb commit 03acb2f450578f6195ab2d0a598f6720e33e7cfb)
This commit is contained in:
Ronnie Sahlberg 2007-05-04 08:32:02 +10:00
parent ebc478749b
commit be17d4d181

View File

@ -710,7 +710,7 @@ int ctdb_control(struct ctdb_context *ctdb, uint32_t destnode, uint64_t srvid,
/* semi-async operation */
timed_out = 0;
if (timeout) {
event_add_timed(ctdb->ev, mem_ctx, timeval_current_ofs(1, 0), timeout_func, &timed_out);
event_add_timed(ctdb->ev, mem_ctx, *timeout, timeout_func, &timed_out);
}
while ((state->state == CTDB_CALL_WAIT)
&& (timed_out == 0) ){