Debian Codegraph @

mysql-test/suite/ndb/t/ndb_get_api_connect_count.inc

raw
1 --disable_query_log
2 --disable_result_log
3 --let $scan_count=10
4
5 # Run some (round robin) scans to ensure normal number
6 # of seized api connect records
7 while ($scan_count)
8 {
9 select * from test.t1;
10 --dec $scan_count
11 }
12
13 # Count TC ApiConnectRecords not in states
14 # 1 (CS_DISCONNCTED)
15 # 7 (CS_RESTART)
16 select count(1) into @acc_count from ndbinfo.ndb$transactions_full where state != 7 and state != 1;
17
18 let $api_conn_count=query_get_value(select @acc_count as acc, acc, 1);
19 --enable_result_log
20 --enable_query_log