Branch: refs/heads/tc-lua-print
Home: https://github.com/mailru/tarantool
Commit: de90a615afc8fa48cc09ca050433e8a4a69ea003
https://github.com/mailru/tarantool/commit/de90a615afc8fa48cc09ca050433e8a4a69ea003
Author: Eugine Blikh <[email protected]>
Date: 2013-06-28 (Fri, 28 Jun 2013)
Changed paths:
M client/tarantool/CMakeLists.txt
M client/tarantool/tc.c
M client/tarantool/tc_admin.c
A client/tarantool/tc_buf.c
A client/tarantool/tc_buf.h
M client/tarantool/tc_cli.c
M client/tarantool/tc_opt.c
M client/tarantool/tc_opt.h
M client/tarantool/tc_print.c
M client/tarantool/tc_print.h
A client/tarantool/tc_print_snap.c
A client/tarantool/tc_print_snap.h
A client/tarantool/tc_print_xlog.c
A client/tarantool/tc_print_xlog.h
M client/tarantool/tc_store.c
M connector/c/include/tp.h
M connector/c/tnt/tnt_buf.c
M connector/c/tnt/tnt_tuple.c
Log Message:
-----------
Changes:
* Implementing LUA printer
(https://blueprints.launchpad.net/tarantool/+spec/tc-lua-printer)
* Moving xlog printer code into tc_print_xlog.{c,h}, leaving basic
printing code in tc_print.{c,h}.
* Fix TC bug (https://bugs.launchpad.net/tarantool/+bug/1185746), Added
support for snap print formatters.
* Added temporary workaround for option (-B or --bin), that allow you to
print STR instead of INT and INT64 in lua formatter.
Works in "keys" and UPDATE (ASSIGN or INSERT).
* Fix of stdin: add custom function for pipe instead of stdin (very slow
with readline)
* Fix for realloc problems
1) if size is 0, then behaviour is undefined
2) in C99 if realloc returns NULL, and size is not zero (errno ==
ENOMEM) input buffer of memory is needed to be freed manually.
Whitepaper of POSIX standart:
http://pubs.opengroup.org/onlinepubs/9699919799/functions/realloc.html
* Add support of -D (--delim) argument, that sets delimiter on start of
tarantool client.
Also, if you "cat" .snap or .xlog files in LUA format it prints delim
in end of every coomand.
_______________________________________________
Mailing list: https://launchpad.net/~tarantool-developers
Post to : [email protected]
Unsubscribe : https://launchpad.net/~tarantool-developers
More help : https://help.launchpad.net/ListHelp