Skip to content
This repository has been archived by the owner on Feb 10, 2023. It is now read-only.

Commit

Permalink
Fix Issue #1: AUTO_INCREMENT value doesn't survive server shutdown
Browse files Browse the repository at this point in the history
Use ha_rocksdb::open() should check table->found_next_number_field,
not table->next_number_field (like InnoDB does)
  • Loading branch information
spetrunia authored and jtolmer committed Jan 5, 2016
1 parent 81b92c2 commit 74a3ec1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage/rocksdb/ha_rocksdb.cc
Expand Up @@ -855,7 +855,7 @@ int ha_rocksdb::open(const char *name, int mode, uint test_if_locked)
info(HA_STATUS_NO_LOCK | HA_STATUS_VARIABLE | HA_STATUS_CONST);

/* TODO: move the following to where TABLE_SHARE is opened: */
if (table->next_number_field)
if (table->found_next_number_field)
load_auto_incr_value();

DBUG_RETURN(0);
Expand Down

0 comments on commit 74a3ec1

Please sign in to comment.