slave.c
/* Sleeps and tells why it is sleeping via MySQL processlist */
Sleeps and tells why it is sleeping via MySQL processlist
Sleeps and tells why it is sleeping via MySQL processlist
void slave_sleep(MYSQL * slave, float t, const char *message)
{
    char *query = g_strdup_printf("SELECT /* %s */ SLEEP(%f)", message, t);
    MYSQL_RES *res = slave_query(slave, query, 0);
    if (res)
        mysql_free_result(res);
    g_free(query);
}
void slave_sleep ( MYSQL * slave , float t , const char * message ) { char * query = g_strdup_printf ( " " , message , t ) ; MYSQL_RES * res = slave_query ( slave , query , 0 ) ; if ( res ) mysql_free_result ( res ) ; g_free ( query ) ; }
Sleeps and tells why it is sleeping via MySQL processlist
Sleeps and tells why it is sleeping via MySQL processlist