Comment 2 for bug 621056

Revision history for this message
Juan (juan-brein) wrote :

We have updated to the 0.32 version last week and unfortunatelly it happened again this week couple of times.

The error is:

ec2-consistent-snapshot: Trying again in 5 seconds
ec2-consistent-snapshot: Tue Aug 24 00:00:33 2010: MySQL flush & lock
DBD::mysql::db selectrow_hashref failed: fetch() without execute() at /usr/bin/ec2-consistent-snapshot line 246.
DBD::mysql::db selectrow_array failed: fetch() without execute() at /usr/bin/ec2-consistent-snapshot line 253.
ec2-consistent-snapshot: Tue Aug 24 00:00:33 2010: sync

The code is:

241
242 my ($mysql_logfile, $mysql_position,
243 $mysql_binlog_do_db, $mysql_binlog_ignore_db);
244 if ( not $Noaction ) {
245 # This might be a slave database already
246 my $slave_status = $mysql_dbh->selectrow_hashref(q{ SHOW SLAVE STATUS });
247 $mysql_logfile = $slave_status->{Master_Log_File};
248 $mysql_position = $slave_status->{Read_Master_Log_Pos};
249 $mysql_binlog_do_db = $slave_status->{Replicate_Do_DB};
250 $mysql_binlog_ignore_db = $slave_status->{Replicate_Ignore_DB};
251
252 # or this might be the master
253 ($mysql_logfile, $mysql_position,
254 $mysql_binlog_do_db, $mysql_binlog_ignore_db) =
255 $mysql_dbh->selectrow_array(q{ SHOW MASTER STATUS })
256 unless $mysql_logfile;
257 }
258

Pleae let me know on anything I can help

Juan