Make random latency on simulated Galera conns conditional

Similar to what was previously done for AWS_AURORA. Reduces noise for
cluster simulations.
pull/4613/head
Javier Jaramago Fernández 2 years ago
parent e1f99e8bea
commit 096709ebbd

@ -930,10 +930,12 @@ __run_query:
if (resultset->rows_count == 0) {
PROXY_TRACE();
}
#ifdef TEST_GALERA_RANDOM
if (rand() % 20 == 0) {
// randomly add some latency on 5% of the traffic
sleep(2);
}
#endif
}
#endif // TEST_GALERA
#ifdef TEST_GROUPREP

Loading…
Cancel
Save