~stewart/drizzle/embedded-innodb-autoincrement

« back to all changes in this revision

Viewing changes to plugin/archive/ha_archive.cc

  • Committer: Stewart Smith
  • Date: 2010-05-12 12:04:58 UTC
  • mfrom: (1283.120.50 staging)
  • mto: This revision was merged to the branch mainline in revision 1430.
  • Revision ID: stewart@flamingspork.com-20100512120458-grl8fnvsw00z2l1o
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
756
756
  *first_value= share->archive_write.auto_increment + 1;
757
757
}
758
758
 
759
 
/* Initialized at each key walk (called multiple times unlike rnd_init()) */
760
 
int ha_archive::index_init(uint32_t keynr, bool)
 
759
/* Initialized at each key walk (called multiple times unlike doStartTableScan()) */
 
760
int ha_archive::doStartIndexScan(uint32_t keynr, bool)
761
761
{
762
762
  active_index= keynr;
763
763
  return(0);
778
778
  current_key= key;
779
779
  current_key_len= key_len;
780
780
 
781
 
  rc= rnd_init(true);
 
781
  rc= doStartTableScan(true);
782
782
 
783
783
  if (rc)
784
784
    goto error;
822
822
  we assume the position will be set.
823
823
*/
824
824
 
825
 
int ha_archive::rnd_init(bool scan)
 
825
int ha_archive::doStartTableScan(bool scan)
826
826
{
827
827
  if (share->crashed)
828
828
      return(HA_ERR_CRASHED_ON_USAGE);