diff options
author | Oleksandr Byelkin <sanja@mariadb.com> | 2018-04-25 21:32:47 +0200 |
---|---|---|
committer | Oleksandr Byelkin <sanja@mariadb.com> | 2018-04-26 15:38:16 +0200 |
commit | 0bdc15d86ea94df6ed7ac07e69309d7b9b7281b2 (patch) | |
tree | 71216332db582f47c2a50fc5613718a58f3f8d36 /sql/sql_sequence.cc | |
parent | 7f89d9c9e3b5ee87f5d3555a425ecf495bf04745 (diff) | |
download | mariadb-git-0bdc15d86ea94df6ed7ac07e69309d7b9b7281b2.tar.gz |
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()
Diffstat (limited to 'sql/sql_sequence.cc')
-rw-r--r-- | sql/sql_sequence.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/sql_sequence.cc b/sql/sql_sequence.cc index 18f0028908f..4d0f15386e7 100644 --- a/sql/sql_sequence.cc +++ b/sql/sql_sequence.cc @@ -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); } } } |