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.
Showing
- client/tarantool/CMakeLists.txt 2 additions, 1 deletionclient/tarantool/CMakeLists.txt
- client/tarantool/tc.c 10 additions, 3 deletionsclient/tarantool/tc.c
- client/tarantool/tc_admin.c 4 additions, 2 deletionsclient/tarantool/tc_admin.c
- client/tarantool/tc_buf.c 126 additions, 0 deletionsclient/tarantool/tc_buf.c
- client/tarantool/tc_buf.h 51 additions, 0 deletionsclient/tarantool/tc_buf.h
- client/tarantool/tc_cli.c 148 additions, 16 deletionsclient/tarantool/tc_cli.c
- client/tarantool/tc_opt.c 20 additions, 0 deletionsclient/tarantool/tc_opt.c
- client/tarantool/tc_opt.h 5 additions, 1 deletionclient/tarantool/tc_opt.h
- client/tarantool/tc_print.c 60 additions, 38 deletionsclient/tarantool/tc_print.c
- client/tarantool/tc_print.h 6 additions, 4 deletionsclient/tarantool/tc_print.h
- client/tarantool/tc_print_snap.c 68 additions, 0 deletionsclient/tarantool/tc_print_snap.c
- client/tarantool/tc_print_snap.h 37 additions, 0 deletionsclient/tarantool/tc_print_snap.h
- client/tarantool/tc_print_xlog.c 197 additions, 0 deletionsclient/tarantool/tc_print_xlog.c
- client/tarantool/tc_print_xlog.h 37 additions, 0 deletionsclient/tarantool/tc_print_xlog.h
- client/tarantool/tc_store.c 5 additions, 16 deletionsclient/tarantool/tc_store.c
- connector/c/include/tp.h 6 additions, 0 deletionsconnector/c/include/tp.h
- connector/c/tnt/tnt_buf.c 3 additions, 1 deletionconnector/c/tnt/tnt_buf.c
- connector/c/tnt/tnt_tuple.c 1 addition, 0 deletionsconnector/c/tnt/tnt_tuple.c
Loading
Please register or sign in to comment