Skip to content
Snippets Groups Projects
Commit 5a856023 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Vladislav Shpilevoy
Browse files

qsync: txn_limbo_wait_complete -- fix type conversion


In txn_limbo_wait_confirm we already use proper int type
(as declared in fiber_cond_wait_timeout) thus lets do the
same here.

Signed-off-by: default avatarCyrill Gorcunov <gorcunov@gmail.com>
parent 8f111301
No related branches found
No related tags found
No related merge requests found
......@@ -176,12 +176,11 @@ txn_limbo_wait_complete(struct txn_limbo *limbo, struct txn_limbo_entry *entry)
double deadline = start_time + replication_synchro_timeout;
bool cancellable = fiber_set_cancellable(false);
double timeout = deadline - fiber_clock();
bool timed_out = fiber_cond_wait_timeout(&limbo->wait_cond,
timeout);
int rc = fiber_cond_wait_timeout(&limbo->wait_cond, timeout);
fiber_set_cancellable(cancellable);
if (txn_limbo_entry_is_complete(entry))
goto complete;
if (timed_out)
if (rc != 0)
goto do_rollback;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment