Bug #76563 | Manual does NOT explain when exactly AUTO-INC lock is set for "bulk inserts" | ||
---|---|---|---|
Submitted: | 1 Apr 2015 15:26 | Modified: | 1 Jun 2017 14:20 |
Reporter: | Valeriy Kravchuk | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Documentation | Severity: | S3 (Non-critical) |
Version: | 5.5, 5.6, 5.7 | OS: | Any |
Assigned to: | Daniel Price | CPU Architecture: | Any |
Tags: | AUTO-INC, innodb, innodb_autoinc_lock_mode, missing manual |
[1 Apr 2015 15:26]
Valeriy Kravchuk
[2 Apr 2015 7:15]
MySQL Verification Team
Hello Valeriy, Thank you for the report. Thanks, Umesh
[1 Jun 2017 14:20]
Daniel Price
Posted by developer: The AUTO-INC lock content referenced by this bug report was updated to include the following text. https://dev.mysql.com/doc/refman/5.7/en/innodb-auto-increment-handling.html "If the source table of the bulk insert operation is different from the target table, the AUTO-INC lock on the target table is taken after a shared lock is taken on the first row selected from the source table. If the source and target of the bulk insert operation are the same table, the AUTO-INC lock is taken after shared locks are taken on all selected rows." Thank you for the bug report.