~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/archive/ha_archive.cc

  • Committer: Eric Lambert
  • Date: 2009-06-18 17:36:19 UTC
  • mto: This revision was merged to the branch mainline in revision 1069.
  • Revision ID: eric.d.lambert@gmail.com-20090618173619-wtzcufvc5lnnpsfj
-it appears that the result from symlink() in ha_archive can not be 
 safely ignored, so check for error and then do the right thing.
-clarified parenthesis in if statement in mf_format.cc. Current config
 was causing compiler warning on gcc-4.3.2 on fedora 10

Show diffs side-by-side

added added

removed removed

Lines of Context:
578
578
  }
579
579
 
580
580
  if (linkname[0])
581
 
    (void)symlink(name_buff, linkname);
 
581
    if(symlink(name_buff, linkname) != 0)
 
582
      goto error2;
582
583
  fn_format(name_buff, table_name, "", ".frm",
583
584
            MY_REPLACE_EXT | MY_UNPACK_FILENAME);
584
585