LevelDB: Autoincrement is not increased on inserting an explicit value

Description

If an explicit value (bigger than existing values) is inserted into an auto-increment column of a LevelDB table, the AUTO_INCREMENT doesn't get increased, so the next attempt to use it causes a duplicate key error.

With InnoDB it works as expected (the value grows).

Test case:

Also covered in leveldb.autoincrement test, only there it causes a result mismatch rather than ER_DUP_ENTRY because the test uses a non-unique index for the column.

Environment

None

Assignee

Sergei Petrunia

Reporter

Elena Stepanova

Labels

Fix versions

Priority

Minor
Configure