- Nov 28, 2013
-
-
Konstantin Osipov authored
Make assoc.c a C file, not C++. Remove dead code in recovery.c, read_log(). Factor out utility functions from lua/init.cc to lua/utils.c, and use lua/utils.c in the rest of the code. The purpose of lua/init.c is to initialize Lua subsystem in the server. Decopule say.cc from the rest of the server, move to say.c Decouple fiber.cc from tarantool_cfg. Decouple opts.c from tarantool_cfg. Introduce lbox_call() which wraps Lua errors into a Tarantool exception and use it everywhere where we used to use lua_call(). Remove box/box_lua.cc:root_L, which was just a copy of tarantool_L. Move plugin API implementation from lua/init.cc to src/plugin.c, plugins must be available for JS and others too. Remove unnecessary GNUisms from plugin.c (argh!) Remove dead code which was trying to sandbox 'ffi' package. Fix lbox_print() which prints to the log to look more like normal print. We should implement say() bindings in the future, for now make what we have work the way it should work. Update ER_PROC_LUA error message text and remove noise from it (imporves readability of Lua errors a bit).
-
- Jun 03, 2013
-
-
Roman Tsisyk authored
-
- Apr 25, 2012
-
-
Konstantin Osipov authored
-
- Nov 04, 2011
-
-
Konstantin Osipov authored
Add comments. Rewrite put_slot loop to make it *both* clear and efficient. There is no need to check for equality in put_slot loop once we meet first non-dirty element: a non-dirty link indicates the end of the collision chain. Do not move elements up the chain in put_slot loop: we may use index in the hash/tree as tuple id in secondary keys.
-
- Sep 09, 2011
-
-
Yuriy Vostrikov authored
-