MySQL 5.6.14 Source Code Document
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
run_query_with_retry.inc
1
#
2
# Run the built query in $sql, retry temporary errors
3
#
4
5
let $_continue = 1;
6
let $_retry = 0;
7
while
($_continue)
8
{
9
error 0,1297; # Allow OK or temporary error
10
eval $sql; #
Run
the
query
11
12
if
(!$mysql_errno)
13
{
14
# Query suceeded, break the retry loop
15
let $_continue = 0;
16
}
17
18
if
($mysql_errno)
19
{
20
# Query failed
21
inc $_retry;
22
echo Query failed with temporary error, retry: $_retry;
23
24
sleep 0.1;
25
}
26
}
mysql-test
suite
ndb_big
run_query_with_retry.inc
Generated on Sat Nov 9 2013 01:25:04 for MySQL 5.6.14 Source Code Document by
1.8.1.2