~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to sql/slave.cc

  • Committer: Monty Taylor
  • Date: 2008-07-09 16:33:52 UTC
  • mto: (77.6.1 glibclient-merge)
  • mto: This revision was merged to the branch mainline in revision 112.
  • Revision ID: monty@inaugust.com-20080709163352-yv7jbu81frc1l4ec
Finished the warnings work!

Show diffs side-by-side

added added

removed removed

Lines of Context:
521
521
*/
522
522
 
523
523
int start_slave_threads(bool need_slave_mutex, bool wait_for_start,
524
 
                        Master_info* mi, const char* master_info_fname,
525
 
                        const char* slave_info_fname, int thread_mask)
 
524
                        Master_info* mi,
 
525
                        const char* master_info_fname __attribute__((__unused__)),
 
526
                        const char* slave_info_fname __attribute__((__unused__)),
 
527
                        int thread_mask)
526
528
{
527
529
  pthread_mutex_t *lock_io=0,*lock_sql=0,*lock_cond_io=0,*lock_cond_sql=0;
528
530
  pthread_cond_t* cond_io=0,*cond_sql=0;
1085
1087
    ignored events' end position for the use of the slave SQL thread, by
1086
1088
    calling this function. Only that thread can call it (see assertion).
1087
1089
 */
1088
 
static void write_ignored_events_info_to_relay_log(THD *thd, Master_info *mi)
 
1090
static void write_ignored_events_info_to_relay_log(THD *thd __attribute__((__unused__)),
 
1091
                                                   Master_info *mi)
1089
1092
{
1090
1093
  Relay_log_info *rli= &mi->rli;
1091
1094
  pthread_mutex_t *log_lock= rli->relay_log.get_log_lock();
1553
1556
    number              Length of packet
1554
1557
*/
1555
1558
 
1556
 
static ulong read_event(MYSQL* mysql, Master_info *mi, bool* suppress_warnings)
 
1559
static ulong read_event(MYSQL* mysql,
 
1560
                        Master_info *mi __attribute__((__unused__)),
 
1561
                        bool* suppress_warnings)
1557
1562
{
1558
1563
  ulong len;
1559
1564
  DBUG_ENTER("read_event");
1601
1606
}
1602
1607
 
1603
1608
 
1604
 
int check_expected_error(THD* thd, Relay_log_info const *rli,
 
1609
int check_expected_error(THD* thd __attribute__((__unused__)),
 
1610
                         Relay_log_info const *rli __attribute__((__unused__)),
1605
1611
                         int expected_error)
1606
1612
{
1607
1613
  DBUG_ENTER("check_expected_error");