[MDEV-4110] LevelDB: Support AUTO_INCREMENT Created: 2013-01-29  Updated: 2013-02-04  Resolved: 2013-02-04

Status: Closed
Project: MariaDB Server
Component/s: None
Fix Version/s: None

Type: Task Priority: Major
Reporter: Sergei Petrunia Assignee: Sergei Petrunia
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
PartOf
is part of MDEV-3841 LevelDB storage engine Closed

 Description   

For start, support AUTO_INCREMENT in a very basic way:

Maintain next_free_value number

  • When opening the table, load it from the index
  • Increase it whenever anybody reserves AUTO_INCREMENT values (regardless of whether they use them or not. InnoDB doesn't guarantee continutity, either)
  • Also increase when writing a record: if (new_record.pk > next_free_value) { next_free_value= new_record.pk+1; }

next_free_value can be stored in TABLE_SHARE.

MyISAM supports auto_increment for columns that are not at key start. We will not support this.

InnoDB does some tricks related to binary logging. We will not do this.



 Comments   
Comment by Sergei Petrunia [ 2013-02-04 ]

Basic auto_increment support is done.

Generated at Thu Feb 08 06:53:48 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.