~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to sql/rpl_rli.cc

  • Committer: Stewart Smith
  • Date: 2008-06-30 05:33:25 UTC
  • mfrom: (12.2.8 drizzle)
  • mto: This revision was merged to the branch mainline in revision 19.
  • Revision ID: stewart@flamingspork.com-20080630053325-mwrv6bjaufcpvj8n
merge my work

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
#include "rpl_mi.h"
19
19
#include "rpl_rli.h"
20
 
#include <my_dir.h>    // For MY_STAT
 
20
#include <my_dir.h>
21
21
#include "sql_repl.h"  // For check_binlog_magic
22
22
#include "rpl_utility.h"
23
23
 
300
300
 
301
301
static inline int add_relay_log(Relay_log_info* rli,LOG_INFO* linfo)
302
302
{
303
 
  MY_STAT s;
 
303
  struct stat s;
304
304
  DBUG_ENTER("add_relay_log");
305
 
  if (!my_stat(linfo->log_file_name,&s,MYF(0)))
 
305
  if (stat(linfo->log_file_name,&s))
306
306
  {
307
307
    sql_print_error("log %s listed in the index, but failed to stat",
308
308
                    linfo->log_file_name);