mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-15732: Assertion `next_free_value % real_increment == offset && next_free_value >= reserved_until' failed in sequence_definition::adjust_values upon SETVAL for sequence with INCREMENT 0
there was a problem with "next_free_value >= reserved_until" condition: SEQUENCE::set_value handle next_free_value & reserved_until after adjust_values() call, so it is incorect to put assert on it in adjust_values()
This commit is contained in:
@ -560,8 +560,7 @@ void sequence_definition::adjust_values(longlong next_value)
|
||||
else
|
||||
{
|
||||
next_free_value+= to_add;
|
||||
DBUG_ASSERT(next_free_value % real_increment == offset &&
|
||||
next_free_value >= reserved_until);
|
||||
DBUG_ASSERT(next_free_value % real_increment == offset);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user