~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to sql/rpl_rli.cc

  • Committer: brian
  • Date: 2008-06-29 12:18:49 UTC
  • Revision ID: brian@localhost.localdomain-20080629121849-2le5txjj7tkdq54f
Fix for stat, NETWARE removal

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);