[MDEV-704] LP:682967 - auto-increment-offset shouldn't be allowed to be greater than auto-increment-increment Created: 2010-11-30 Updated: 2022-09-08 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 5.5.30, 5.1.67, 5.2.14, 5.3.12 |
| Fix Version/s: | 5.5 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Arjen Lentz (Inactive) | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | Launchpad, verified | ||
| Attachments: |
|
| Description |
|
Apart from both of these variables not allowed to be 0, auto-increment-offset should not be allowed to be greater than auto-increment-increment as that would by definition create an invalid scenario. For startup, this could be checked after the config/cmdline params are all processed - this to prevent chucking an error in case they're specified with offset first and increment second. |
| Comments |
| Comment by Sergei Golubchik [ 2010-12-27 ] |
|
Re: [Bug 682967] [NEW] auto-increment-offset shouldn't be allowed to be greater than auto-increment-increment It is not at all obvious to me that this situation "should not" be Somehow I cannot derive A < B from the formula X = A + N*B. Regards, |
| Comment by Arjen Lentz (Inactive) [ 2010-12-29 ] |
|
Re: auto-increment-offset shouldn't be allowed to be greater than auto-increment-increment Not sure about your formula re how auto-inc-offset/increment work. |
| Comment by Arjen Lentz (Inactive) [ 2011-07-08 ] |
|
Re: auto-increment-offset shouldn't be allowed to be greater than auto-increment-increment |
| Comment by Rasmus Johansson (Inactive) [ 2011-07-09 ] |
|
Launchpad bug id: 682967 |
| Comment by Elena Stepanova [ 2013-03-27 ] |
|
>> Re: auto-increment-offset shouldn't be allowed to be greater than auto-increment-increment I'm not sure how much danger is there in reality, since "If the value of auto_increment_offset is greater than that of auto_increment_increment, the value of auto_increment_offset is ignored." (http://dev.mysql.com/doc/refman/5.1/en/replication-options-master.html#sysvar_auto_increment_offset) Anyway, valid or not, it's a FR, not a bug, moving to Tasks. |