mirror of
https://github.com/samba-team/samba.git
synced 2025-02-04 17:47:26 +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:
parent
ebc478749b
commit
be17d4d181
@ -710,7 +710,7 @@ int ctdb_control(struct ctdb_context *ctdb, uint32_t destnode, uint64_t srvid,
|
|||||||
/* semi-async operation */
|
/* semi-async operation */
|
||||||
timed_out = 0;
|
timed_out = 0;
|
||||||
if (timeout) {
|
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)
|
while ((state->state == CTDB_CALL_WAIT)
|
||||||
&& (timed_out == 0) ){
|
&& (timed_out == 0) ){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user