Skip to content
Snippets Groups Projects
Commit fee95cf7 authored by Serge Petrenko's avatar Serge Petrenko Committed by Vladimir Davydov
Browse files

sql: fix error handling in sql_analysis_load()

Previously if an error occured in box_index_len() called from
sql_analysis_load(), the return code (-1 on error) was cast to uint32_t
and used later as size of memory to be allocated. This lead to assertion
failures in slab_order() since allocation size was too big. This was
discovered during investigation of #3779.
Fix error handling and add some error logging.

Follow-up #3779
parent f50f0b29
No related branches found
No related tags found
Loading
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