~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/storage_engine.cc

  • Committer: Brian Aker
  • Date: 2009-04-29 00:32:11 UTC
  • mto: This revision was merged to the branch mainline in revision 1001.
  • Revision ID: brian@gaz-20090429003211-nnomdlvzv4hb15jt
More refactoring back to TableShare object.

Show diffs side-by-side

added added

removed removed

Lines of Context:
659
659
  const char *name;
660
660
  TableShare share;
661
661
 
662
 
  share.init_tmp_table_share(db, 0, table_name, path);
663
 
  if (open_table_def(session, &share, 0) ||
 
662
  share.init(db, 0, table_name, path);
 
663
  if (open_table_def(session, &share) ||
664
664
      open_table_from_share(session, &share, "", 0, (uint32_t) READ_ALL, 0, &table,
665
665
                            OTM_CREATE))
666
666
    goto err;
678
678
    my_error(ER_CANT_CREATE_TABLE, MYF(ME_BELL+ME_WAITTANG), name_buff, error);
679
679
  }
680
680
err:
681
 
  free_table_share(&share);
 
681
  share.free_table_share();
682
682
  return(error != 0);
683
683
}
684
684