~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/myisam/mi_check.c

  • Committer: Jay Pipes
  • Date: 2008-07-17 16:34:04 UTC
  • mfrom: (51.1.127 remove-dbug)
  • mto: This revision was merged to the branch mainline in revision 182.
  • Revision ID: jay@mysql.com-20080717163404-5nyc2vfa0yuorya0
Final removal from heap storage engine plus fixes from MontyT re: _mi_report_crashed()

Show diffs side-by-side

added added

removed removed

Lines of Context:
2003
2003
} /* change_to_newfile */
2004
2004
 
2005
2005
 
2006
 
        /* Locks a whole file */
2007
 
        /* Gives an error-message if file can't be locked */
2008
 
 
2009
 
int lock_file(MI_CHECK *param, File file, my_off_t start, int lock_type,
2010
 
              const char *filetype, const char *filename)
2011
 
{
2012
 
  if (my_lock(file,lock_type,start,F_TO_EOF,
2013
 
              param->testflag & T_WAIT_FOREVER ? MYF(MY_SEEK_NOT_DONE) :
2014
 
              MYF(MY_SEEK_NOT_DONE |  MY_DONT_WAIT)))
2015
 
  {
2016
 
    mi_check_print_error(param," %d when locking %s '%s'",my_errno,filetype,filename);
2017
 
    param->error_printed=2;             /* Don't give that data is crashed */
2018
 
    return 1;
2019
 
  }
2020
 
  return 0;
2021
 
} /* lock_file */
2022
 
 
2023
2006
 
2024
2007
        /* Copy a block between two files */
2025
2008