[tarantool-patches] [PATCH v3 2/6] box: rework box_lua_{call, eval} to use input port

Konstantin Osipov kostja at tarantool.org
Mon Jun 17 12:35:52 MSK 2019


* Kirill Shcherbatov <kshcherbatov at tarantool.org> [19/06/13 17:18]:
> Re-factor box_lua_call and box_lua_eval so that they don't take
> call_request. This approach is more scalable: in case of a
> functional index, the user expects to see a tuple with field
> names so we should be able to pass not only raw msgpack, but
> also a tuple to a Lua call so we need an universal way to pass
> arguments to _call methods.

I think get_msgpack() is a violation of encapsulation - you call
"get_msgpack" to later push the port arguments to C stack, is that
right? So you should call port:dump_c() instead, shouldn't you?


-- 
Konstantin Osipov, Moscow, Russia



More information about the Tarantool-patches mailing list