Skip to content
Snippets Groups Projects
Commit 6a3e3133 authored by Sergey Bronnikov's avatar Sergey Bronnikov Committed by Vladimir Davydov
Browse files

box: fix segfault in box.internal.compact

There is an internal Lua function `box.internal.compact` that used in
`index_object:compact()` [1]. Tarantool has crashed when
`box.internal.compact` running with id of non-existent space.

Patch adds spaces cache initialization to box_init() and removes
excessive check in space_cache_destroy().

1. https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_index/compact/

Fixes #8196

NO_DOC=bugfix for internal Lua function
NO_CHANGELOG=bugfix for internal Lua function
parent b1095c1c
No related branches found
No related tags found
No related merge requests found
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