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

box: refactor port_c msgpack methods

Methods `get_msgpack` and `dump_msgpack` generally do the same things
except for some details (array header, type of destination buffer), so
let's factor out their core part into a separate function - it doesn't
make much sense right now, but we are going to populate port_c with new
types, and these two functions would become very similar without this
refactoring.

Along the way, let's panic in these methods when we are out of memory -
it's the approach we are taking right now in Tarantool. Corresponding
error injection is dropped as well.

NO_TEST=refactoring
NO_CHANGELOG=refactoring
NO_DOC=refactoring
parent 08dedbbe
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