Skip to content

MENT-2297: Inconsistency detected - create sequence #506

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: 11.4
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions sql/sql_sequence.cc
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,12 @@ bool sequence_definition::check_and_adjust(bool set_reserved_until)
(real_increment < 0 && reserved_until <= max_value)))
DBUG_RETURN(FALSE);

sql_print_error("Check failed, sequence is invalid. "
"max_value: %lld min_value: %lld start: %lld "
"cache: %lld real_increment: %lld max_increment: %lld "
"reserved_until: %lld next_free_value: %lld.",
max_value, min_value, start, cache, real_increment,
max_increment, reserved_until, next_free_value);
DBUG_RETURN(TRUE); // Error
}

Expand Down
Loading