# # Run the built query in $sql, retry temporary errors # let $_continue = 1; let $_retry = 0; while($_continue) { error 0,1297; # Allow OK or temporary error eval $sql; # Run the query if (!$mysql_errno) { # Query suceeded, break the retry loop let $_continue = 0; } if ($mysql_errno) { # Query failed inc $_retry; echo Query failed with temporary error, retry: $_retry; sleep 0.1; } }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
bug37983.test | File | 1.25 KB | 0644 |
|
end_timer.inc | File | 138 B | 0644 |
|
my.cnf | File | 1.51 KB | 0644 |
|
run_query_with_retry.inc | File | 435 B | 0644 |
|
smoke.test | File | 9.96 KB | 0644 |
|
start_timer.inc | File | 83 B | 0644 |
|
suite.inc | File | 129 B | 0644 |
|