Skip to content
Snippets Groups Projects
Commit 697123d0 authored by Andrey Saranchin's avatar Andrey Saranchin Committed by Vladimir Davydov
Browse files

box: use maximal space id instead of _schema.max_id

Currently, _schema.max_id is used to generate sequentially growing
space ids. The main drawback of this approach is that generated space id
can be not unique if one mixes implicit and explicit space ids. Let's use
actual maximal space id to generate a new one, and scan for free id if
overflow happened.

Closes #8036

NO_DOC=bugfix
parent fada9ca3
No related branches found
No related tags found
No related merge requests found
Showing
with 183 additions and 90 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment