Lines with zero coverage (57/536): sql/log_event.cc: 8195 : + error= 1; sql/rpl_mi.cc: 1017 : + mi->unlock_slave_threads(); 1024 : + mi->unlock_slave_threads(); 1042 : + mi->unlock_slave_threads(); 1146 : + if (warning != Sql_condition::WARN_LEVEL_NOTE) 1150 : + (int) connection_name->length, connection_name->str); 1151 : + mysql_mutex_unlock(&LOCK_active_mi); 1152 : + DBUG_RETURN(0); 1323 : + int error= my_errno; 1324 : + if (index_file_nr >= 0) 1325 : + my_close(index_file_nr,MYF(0)); 1329 : + index_file_name, error); 1330 : + DBUG_RETURN(TRUE); 1367 : + my_error(ER_SERVER_SHUTDOWN, MYF(0)); 1368 : + ret= 1; 1548 : + mi->connection_name.str); 1549 : + result= 1; 1550 : + if (error < 0) // Fatal error 1551 : + break; sql/rpl_parallel.cc: 1412 : + goto err; sql/rpl_rli.cc: 237 : + mysql_mutex_unlock(log_lock); 1367 : + if (flush_relay_log_info(this)) 1368 : + error= 1; sql/slave.cc: 638 : + retval= ER_ERROR_DURING_FLUSH_LOGS; 663 : + retval= ER_ERROR_DURING_FLUSH_LOGS; 667 : + retval= ER_ERROR_DURING_FLUSH_LOGS; 6724 : + if (flush_relay_log_info(rli)) 6726 : + errmsg= "error flushing relay log"; 6727 : + goto err; sql/sql_reload.cc: 187 : + *write_to_binlog= -1; 369 : + result= 1; sql/sys_vars.cc: 1839 : + return give_error_if_slave_running(0); 1848 : + running= give_error_if_slave_running(0); 1851 : + return running; 2799 : + if (!give_error_if_slave_running(0)) 4076 : + Sql_condition::WARN_LEVEL_ERROR); 4081 : + Sql_condition::WARN_LEVEL_WARN); 4090 : + mi->connection_name.str); 4097 : + mi->release(); 4107 : + Rpl_filter* rpl_filter= mi->rpl_filter; 4110 : + mysql_mutex_lock(&LOCK_active_mi); 4131 : + mysql_mutex_unlock(&LOCK_active_mi); 4150 : + mi= get_master_info(base, Sql_condition::WARN_LEVEL_WARN); 4154 : + mysql_mutex_lock(&LOCK_global_system_variables); 4278 : + if ((mi= (get_master_info(&thd->variables.default_master_connection, 4279 : + Sql_condition::WARN_LEVEL_ERROR)))) 4286 : + mi->release(); storage/connect/ioapi.c: 96 : +static voidpf ZCALLBACK fopen_file_func (voidpf opaque __attribute__((unused)), const char* filename, int mode) 114 : +static voidpf ZCALLBACK fopen64_file_func (voidpf opaque __attribute__((unused)), const void* filename, int mode) 133 : +static uLong ZCALLBACK fread_file_func (voidpf opaque __attribute__((unused)), voidpf stream, void* buf, uLong size) 140 : +static uLong ZCALLBACK fwrite_file_func (voidpf opaque __attribute__((unused)), voidpf stream, const void* buf, uLong size) 147 : +static long ZCALLBACK ftell_file_func (voidpf opaque __attribute__((unused)), voidpf stream) 155 : +static ZPOS64_T ZCALLBACK ftell64_file_func (voidpf opaque __attribute__((unused)), voidpf stream) 162 : +static long ZCALLBACK fseek_file_func (voidpf opaque __attribute__((unused)), voidpf stream, uLong offset, int origin) 185 : +static long ZCALLBACK fseek64_file_func (voidpf opaque __attribute__((unused)), voidpf stream, ZPOS64_T offset, int origin) 211 : +static int ZCALLBACK fclose_file_func (voidpf opaque __attribute__((unused)), voidpf stream) 218 : +static int ZCALLBACK ferror_file_func (voidpf opaque __attribute__((unused)), voidpf stream) Lines with zero branches (42/164): sql/item_func.cc: b 1: 3961 : + if (!(mi= get_master_info(&connection_name, Sql_condition::WARN_LEVEL_WARN))) sql/log_event.cc: b 1: 8194 : + if (flush_relay_log_info(rli)) sql/mysqld.cc: b 0: 4939 : + if (error) sql/rpl_mi.cc: b 0: 1144 : + if (unlikely(!master_info_index)) b 2: 1144 : + if (unlikely(!master_info_index)) b 0: 1146 : + if (warning != Sql_condition::WARN_LEVEL_NOTE) b 1: 1146 : + if (warning != Sql_condition::WARN_LEVEL_NOTE) b 0: 1150 : + (int) connection_name->length, connection_name->str); b 1: 1150 : + (int) connection_name->length, connection_name->str); b 1: 1303 : + mysql_mutex_assert_owner(&LOCK_active_mi); b 4: 1303 : + mysql_mutex_assert_owner(&LOCK_active_mi); b 0: 1315 : + if ((index_file_nr= my_open(index_file_name, b 2: 1317 : + MYF(MY_WME))) < 0 || b 3: 1317 : + MYF(MY_WME))) < 0 || b 0: 1324 : + if (index_file_nr >= 0) b 1: 1324 : + if (index_file_nr >= 0) b 1: 1340 : + if (my_sync(index_file_nr, MYF(MY_WME))) b 0: 1365 : + if (!master_info_index) b 0: 1543 : + if (error) b 0: 1550 : + if (error < 0) // Fatal error b 1: 1550 : + if (error < 0) // Fatal error sql/rpl_parallel.cc: b 1: 1320 : + if (rpt->pause_for_ftwrl) sql/rpl_rli.cc: b 1: 1367 : + if (flush_relay_log_info(this)) b 2: 1367 : + if (flush_relay_log_info(this)) sql/slave.cc: b 2: 636 : + if (flush_relay_log_info(&mi->rli) || b 3: 636 : + if (flush_relay_log_info(&mi->rli) || b 5: 636 : + if (flush_relay_log_info(&mi->rli) || b 1: 652 : + if (!retval) b 1: 660 : + if (likely(mi->fd >= 0)) b 3: 660 : + if (likely(mi->fd >= 0)) b 2: 662 : + if (flush_master_info(mi, TRUE, FALSE) || my_sync(mi->fd, MYF(MY_WME))) b 4: 662 : + if (flush_master_info(mi, TRUE, FALSE) || my_sync(mi->fd, MYF(MY_WME))) b 6: 662 : + if (flush_master_info(mi, TRUE, FALSE) || my_sync(mi->fd, MYF(MY_WME))) b 1: 6724 : + if (flush_relay_log_info(rli)) b 2: 6724 : + if (flush_relay_log_info(rli)) sql/sql_reload.cc: b 1: 186 : + if (rotate_relay_log(mi)) b 1: 368 : + if (master_info_index->remove_master_info(mi)) sql/sys_vars.cc: b 1: 1578 : + if (give_error_if_slave_running(1)) b 1: 2799 : + if (!give_error_if_slave_running(0)) b 2: 2799 : + if (!give_error_if_slave_running(0)) b 1: 4278 : + if ((mi= (get_master_info(&thd->variables.default_master_connection, b 2: 4278 : + if ((mi= (get_master_info(&thd->variables.default_master_connection,