~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/myisam/mi_create.cc

  • Committer: Brian Aker
  • Date: 2010-09-11 01:35:47 UTC
  • mto: (1759.2.1 build)
  • mto: This revision was merged to the branch mainline in revision 1762.
  • Revision ID: brian@tangent.org-20100911013547-b04k7f1qddr3ml4t
Shuffle native functions over to hash such that we have a specific container
for them.

Show diffs side-by-side

added added

removed removed

Lines of Context:
468
468
  if (! (flags & HA_DONT_TOUCH_DATA))
469
469
    share.state.create_time= (long) time((time_t*) 0);
470
470
 
471
 
  pthread_mutex_lock(&THR_LOCK_myisam);
 
471
  THR_LOCK_myisam.lock();
472
472
 
473
473
  /*
474
474
    NOTE: For test_if_reopen() we need a real path name. Hence we need
671
671
      goto err;
672
672
  }
673
673
  errpos=0;
674
 
  pthread_mutex_unlock(&THR_LOCK_myisam);
 
674
  THR_LOCK_myisam.unlock();
675
675
  if (internal::my_close(file,MYF(0)))
676
676
    goto err;
677
677
  free((char*) rec_per_key_part);
678
678
  return(0);
679
679
 
680
680
err:
681
 
  pthread_mutex_unlock(&THR_LOCK_myisam);
 
681
  THR_LOCK_myisam.unlock();
682
682
  save_errno=errno;
683
683
  switch (errpos) {
684
684
  case 3: