mariadb/storage
Timothy Smith 22f6a8424c Apply InnoDB snapshot innodb-5.1-2858, part 7.
A follow-up fix for Bug 38839, which exposed a pre-existing bug in the
autoinc handling.

Detailed revision comments:

r2722 | sunny | 2008-10-04 02:48:04 +0300 (Sat, 04 Oct 2008) | 18 lines
branches/5.1: This bug has always existed but was masked by other errors. The
fix for bug# 38839 triggered this bug. When the offset and increment are > 1
we need to calculate the next value taking into consideration the two
variables. Previously we simply assumed they were 1 particularly offset was
never used. MySQL does its own calculation and that's probably why it seemed
to work in the past. We would return what we thought was the correct next
value and then MySQL would recalculate the actual value from that and return
it to the caller (e.g., handler::write_row()). Several new tests have been
added that try and catch some edge cases. The tests exposed a wrap around
error in MySQL next value calculation which was filed as bug 39828. The tests
will need to be updated once MySQL fix that bug.

One good side effect of this fix is that dict_table_t size has been
reduced by 8 bytes because we have moved the autoinc_increment field to
the row_prebuilt_t structure. See review-board for a detailed discussion.

rb://3
2008-12-14 13:42:37 -07:00
..
archive Bug#37719: Crash if rename Archive table to same name with different 2008-10-03 20:08:40 +02:00
blackhole Bug #38360: BLACKHOLE replication with RBR is broken 2008-10-02 11:02:38 +02:00
csv Bug#36638 mysqld crashes when open file limit is passed and general query log enabled 2008-08-15 11:53:54 +05:00
example Merge trift2.:/MySQL/M51/mysql-5.1 2008-03-14 14:41:08 +01:00
federated Merge from 5.0-bugteam. 2008-08-15 15:30:17 -04:00
heap Merge kaamos.(none):/data/src/mysql-5.1 2008-03-12 11:19:46 +03:00
innobase Apply InnoDB snapshot innodb-5.1-2858, part 7. 2008-12-14 13:42:37 -07:00
myisam Merge. 2008-12-09 13:27:46 +04:00
myisammrg Fixed bug#36006: Optimizer does table scan for SELECT COUNT(*) 2008-04-26 02:45:58 +05:00
ndb Merge trift2.:/MySQL/M51/ndb-decl-5.1 2008-03-27 13:20:24 +01:00
Makefile.am Many files: 2006-12-31 02:29:11 +01:00