lealone / Lealone

比 MySQL 和 MongoDB 快10倍的 OLTP 关系数据库和文档数据库
Other
2.44k stars 513 forks source link

关于auto_increment #124

Closed ronin0079 closed 2 years ago

ronin0079 commented 2 years ago

你好z大,我在指定主键auto_increment时,连续insert都正常,一旦程序重启后再insert,id又从1重新开始,触发 Unique index or primary key violation: "CONSTRAINT_INDEX_1

codefollower commented 2 years ago

不是很容易重现,我反复关掉数据库试了几次也重现问题了,感谢报告问题,会安排时间排查 bug。