- Sep 09, 2011
-
-
Yuriy Vostrikov authored
-
- Sep 06, 2011
-
-
Konstantin Osipov authored
Implement INSERT command in Box. Minor cleanups in Lua.
-
Konstantin Osipov authored
-
- Sep 02, 2011
-
-
Konstantin Osipov authored
https://blueprints.launchpad.net/tarantool/+spec/namespace-to-space Rename 'namespace' to 'space' everywhere: in configuration, in implementation, in documentation.
-
Konstantin Osipov authored
Add access to space configuration to Lua. Make configuration in Lua read-only.
-
Konstantin Osipov authored
Provide access to server configuration in Lua.
-
- Aug 31, 2011
-
-
Konstantin Osipov authored
https://bugs.launchpad.net/tarantool/+bug/730613 Document Bug#730613, "SELECT with a disjunction on multiple keys returns matching tuples twice".
-
Konstantin Osipov authored
-
Konstantin Osipov authored
-
- Aug 30, 2011
-
-
Konstantin Shulgin authored
-
Dmitry Simonenko authored
-
- Aug 29, 2011
-
-
Konstantin Osipov authored
Now that confetti supports it, use boolean for true/false yes/no config options. Update the manual accordingly.
-
Konstantin Shulgin authored
test environment: - luajit suppressions was added.
-
Konstantin Osipov authored
Install a filter to not include a local path into a test results. Fix the code which allocates Lua coroutines to properly destroy them: the old code could destroy the same coroutine twice, or never at all.
-
Konstantin Osipov authored
-
- Aug 27, 2011
-
-
Konstantin Osipov authored
Remove auto-generation of tarantool_box_cfg.cfg. This was intended as a sample configuration file, but it is no longer syntactically correct, and thus can not be used. Besides, there are now semantical rules on top of the syntax restrictions (e.g. you can't define memcached_expire on a replica), which also make the auto-generated config incorrect. Remove it to not mislead first-time users into trying it out.
-
Konstantin Osipov authored
Implement box.unpack() to be able to convert integers, packed into a tuple, to Lua numbers
-
- Aug 25, 2011
-
-
Konstantin Osipov authored
-
Konstantin Osipov authored
Fix a bug when Lua transaction was rolled back twice when Lua procedure was invoked from CALL. Change the way arguments to and from CALL statement in the binary protocol are passed: we used to pass everything from the wire as a single binary blob. Now every field of the received tuple is passed in as a separate string argument. Everything passed back from Lua is converted to a tuple. This makes CALL response similar to one of SELECT. Improve box.pack() to convert its argument to integer when necessary. Add an argument count check to box.pack(). Additionally, now box.pack() can be used to pack operations of 'UPDATE'. Use tarantool_lua_tostring() in iov_add_ret(): this function is now used to convert return values to the binary protocol in box_lua.m. This is necessary if we try to send boolean or nil over the binary wire, since Lua C API lua_tostring() does not convert them. Add box.lua - a system Lua script compiled into Tarantool and containing a bunch of Lua code preloaded at startup. Populate box.lua with implementation of basic Lua functions: box.select(), box.update(), box.replace(), box.insert() (currently an alias for box.replace()), box.delete(). They are all wrappers around box.process(). Move box_lua_init() to the beginning of mod_init(), since Lua in future can be used in recover(). Fix a wrong assumption about the contents of Lua stack in iov_add_multret(). Update sql.g Python SQL grammar to allow an empty argumeent list for procedure in CALL statement. Add initial documentation on Lua procedures. Add more Lua tests. Unrelated: rename INSERT to REPLACE, and UPDATE_FIELDS to UPDATE. Remove SELECT_LIMIT, which is not used any more.
-
- Aug 22, 2011
-
-
Konstantin Osipov authored
-
Konstantin Shulgin authored
Core: - fix telling libev about forks.
-
Dmitry Simonenko authored
-
Konstantin Osipov authored
Conflicts: core/CMakeLists.txt core/fiber.m third_party/valgrind/valgrind.h
-
Konstantin Shulgin authored
Core: - salloc_destroy was removed from tarantool_free routine Test environment: - new option 'valgrind_disabled' was added to suite.ini; - box/show test was renamed to box/admin test; - box/admin test was splited to admin adn admin_coredump tests.
-
Konstantin Osipov authored
This allows to immediately call from modules stored procedures defined in the administrative console.
-
Konstantin Shulgin authored
Test environment: - test-run.py script was reformated to PEP8.
-
- Aug 19, 2011
-
-
Konstantin Osipov authored
Instead of using "print" and fiber->iov to return results to the client, change the Lua procedures implementation to simply send to the client all return values of a procedure. A procedure, in turn, can return tuples, integers (and, in future, strings, Lua tables or whatever). This allows nicely to call one procedure from another, and use its results in Lua, and call the very same procedure from the binary protocol, and still be able to process its results on the client.
-
Konstantin Shulgin authored
Test enviroment: - old valgrind.sup file was deleted (not needed any more). - unused options in suite.ini files was removed.
-
Konstantin Shulgin authored
Test enviroment: - checking empty tests list was added =; - valgrind suppressions routine was updated.
-
Konstantin Osipov authored
Remove dead code from txn_cleanup(), which would check that txn_cleanup() is not called twice: this code is from the time when we used Rename txn_abort() to txn_rollback(). Rename txn_alloc() to txn_begin(). Introduce box_out interface, used to send box results to the client. Lua uses this interface to intercept returned tuples and push as return values to Lua stack. Make iov_add/iov_dup inline, as they used to be. They are now mostly used from within callbacks. Make txn_commit()/txn_rollback() non-static as they are now used in memcached.m. Introduce memcached_get(): implementation of Memcached GET statement. Wrap memcached_get() in proper txn_begin()/txn_commit()/txn_rollback(), and handle failure of memcached_get() by rolling back the transaction. Split BOX_QUIET to two flags: BOX_GC_TXN and BOX_QUIET. BOX_QUIET had a side-effect that txn_cleanup() was done immediately, rather than by fiber_gc(). This had the side effect that txn_commit() could not be used in memcached_get(), because in memcached_get() we need both BOX_QUIET and txn_cleanup() called from fiber_gc(). Now that we have box_out interface, eliminate BOX_QUIET flag completely, and use box_out_quiet set of callbacks instead.
-
Konstantin Shulgin authored
Test enviroment: - start/stop server routine was updated. Tests: - fix double start srvers.
-
Dmitry Simonenko authored
Conflicts: test/box/valgrind.sup valgrind.sup path updated
-
Dmitry Simonenko authored
-
Dmitry Simonenko authored
* valgrind suppresions update
-
- Aug 18, 2011
-
-
Konstantin Shulgin authored
Test envirment: - stop server routine was updated; - valgring start options was updated. Valgrind: - suppressions was updated.
-
Konstantin Shulgin authored
* process handle routines in test enviroment was updated.
-
Konstantin Osipov authored
Fix a bug when Tarantool exceptions were intercepted by Lua in lua_pcall(), and converted to Lua errors. Let Tarantool exceptions pass freely through Lua, by using lua_call() instead of lua_pcall(). In case of any Lua error lua_call() aborts execution of the entire process. Register lua_atpanic that converts lua errors to Tarantool exception ER_PROC_LUA. Unwinding the stack in this manner didn't work properly with libcoro 6.0, which we were using. Update libcoro library to version 6.06 to fix this problem.
-
- Aug 17, 2011
-
-
Dmitry Simonenko authored
-
Konstantin Osipov authored
Complete the renamve of all iov functions.
-