~codership/galera/2.x

« back to all changes in this revision

Viewing changes to tests/scripts/action.sh

  • Committer: Alexey Yurchenko
  • Date: 2014-01-29 14:43:26 UTC
  • mto: This revision was merged to the branch mainline in revision 167.
  • Revision ID: alexey.yurchenko@codership.com-20140129144326-aa70nhzofl0smkm8
Fixes:
* provider pause() is fixed to avoid potential deadlock with replicating threads.
* lp:1099478 - handle own address in the address list properly (do not throw exception)
* lp:1259952 - fixed allocation of multiple of pages when posix_fallocate() is unavailable
* lp:1261996 - fixed compilation on Solaris 11
* lp:1232747 - fixed group remerge after partitioning event

Synced with SVN r3450

Show diffs side-by-side

added added

removed removed

Lines of Context:
119
119
 
120
120
check()
121
121
{
 
122
    wait_sync $NODE_LIST || true
 
123
 
 
124
 
122
125
    cmd="check_cmd"
123
126
    ! action "$cmd" "$@" # ! - to ignore possible connection error
124
127
 
164
167
    return 1
165
168
}
166
169
 
 
170
# Query each node with causal reads on to make sure that slave
 
171
# queue has been fully processed.
 
172
# Arguments: list of nodes
 
173
wait_sync()
 
174
{
 
175
    local node
 
176
    for node in "$@"
 
177
    do
 
178
        mysql_query "$node" "set wsrep_causal_reads=1; select 0;" 1>/dev/null
 
179
    done
 
180
}
 
181
 
 
182
 
167
183
start_node()
168
184
{
169
185
    node_job "start_cmd" "$@"