sql: fix segfault with check referencing new table
Starting from 9a543202 on tuple insertion in _space we execute sql_checks_resolve_space_def_reference for checks if any on executing on_replace_dd_space trigger. Routine box_space_id_by_name that takes a look to _space space returns not-null value, at the same time space object doesn't present in space cache and can't be found by space_by_id. Before 1.10 patch 0ecabde8 was merged to 2.0 as a part of 13df2b1f box_space_id_by_name used to return BOX_ID_NIL due to "multi-engine transaction error" that is not raised in same situation now. Closes #3611.
Loading
Please register or sign in to comment