Skip to content
Snippets Groups Projects
  1. Aug 18, 2021
  2. Aug 09, 2021
  3. Feb 26, 2019
    • Vladislav Shpilevoy's avatar
      Move 'core' and 'uuid' libs to src/lib · 3f5f59bb
      Vladislav Shpilevoy authored
      For the same reason why 'uri' was moved to src/lib - SWIM needs
      core and uuid, and SWIM will live in src/lib.
      
      This commit follows 'uri' relocation as a separate one because
      'uri' relocation required some changes in the files, moved by
      this commit.
      
      Needed for #3234
      3f5f59bb
  4. Dec 03, 2018
    • Vladislav Shpilevoy's avatar
      box: move port to src/ · 1730b39a
      Vladislav Shpilevoy authored
      Basic port structure does not depend on anything but
      standard types. It just gives an interface and calls
      virtual functions.
      
      Its location in box/ was ok since it was not used
      anywhere in src/. But next commits will add a new
      method to mpstream so as to dump port. Mpstream is
      implemented in src/, so lets move port over here.
      
      Needed for #3505
      1730b39a
  5. May 20, 2016
  6. Oct 10, 2015
  7. Aug 12, 2015
  8. Jun 04, 2013
  9. Jun 03, 2013
  10. Mar 13, 2013
    • Konstantin Osipov's avatar
      Decouple tbuf and pickle. · 44fab8fe
      Konstantin Osipov authored
      Reorganize iproto parser (pickle) around two pointers at the request
      parsing position and request end.
      This makes the code more generic and easily usable in lua and
      with new buffered I/O.
      
      This also reduces the current widespread use of tbuf throughout
      entire code base (good for future maintainability of the code).
      44fab8fe
  11. Dec 17, 2012
  12. Dec 06, 2012
  13. Jul 31, 2012
    • Konstantin Osipov's avatar
      End the copyright madness. · 33269e00
      Konstantin Osipov authored
      End the copyright madness. Tarantool authors maintain a shared
      copyright on the code base. Remove individual copyright (c) from
      specific files and put a single AUTHORS file in the project top.
      33269e00
  14. May 03, 2012
  15. Apr 25, 2012
  16. Nov 10, 2011
  17. Aug 16, 2011
    • Konstantin Osipov's avatar
      Refactoring box-tuple: review fixes. · 9495e5f9
      Konstantin Osipov authored
      Spell check the comments.
      Remove unnecessary changes. Be strict about
      not including more than necessary.
      Update copyright headers.
      Do not put static functions after non-static:
      a function can become non-static in future,
      and it should not require moving it around in
      the .m file.
      9495e5f9
  18. Aug 04, 2011
  19. Jul 27, 2011
    • Konstantin Osipov's avatar
      Lua: add CALL command to the binary protocol. · 25be21ff
      Konstantin Osipov authored
      CALL accepts flags and a tuple (list of fields).
      
      Add CALL support to the sql.g parser (Python
      testing environment).
      
      Add two new error codes: ER_PROC_LUA (an
      error inside Lua procedure) and ER_NO_SUCH_PROC.
      
      Since so far there is no way to create a stored
      procedure (one needs to rebuild Tarantool to pre-load it),
      this addition has little practical use.
      25be21ff
  20. Jun 27, 2011
  21. Jun 24, 2011
    • Konstantin Osipov's avatar
      https://blueprints.launchpad.net/tarantool/+spec/client-error · 9b3d0a76
      Konstantin Osipov authored
      Send error messages to the client.
      
      Before this patch, Tarantool would only send an error
      code to the client, but record all the details in its error log.
      
      This patch extends the client/server protocol and adds
      error text to it. This text can now contain not only
      a staple message that corresponds to the error, but
      problem-related additional information, such as namespace id,
      field number, etc.
      
      All errors still can be logged in the error log, but
      not all of them need to be. For errors, which are only
      sent to the client, this patch uses ClientError exception
      class. Errors which also need to be logged in the error log
      must use LoggedError exception class.
      
      To choose between the two, the following rule of thumb is applied:
      - client application errors, which, generally, can be non-errors at all,
        such as access to a non-existing namespace, index or field, or
        access to a locked tuple are not logged
      - execution and protocol errors, such as an error writing to disk,
      an message that doesn't follow the protocol format, is logged.
      
      For the most common error, ER_TUPLE_IS_RO, we do not use
      string template to reduce CPU cycles necessary to produce this error
      (on my machine one can raise ~200 000 exceptions per second, which is not
      too much).
      
      An addition to the above, this patch renames error codes, to
      make them shorter (ERR_CODE_* -> ER_*) and rewrites the iproto.m
      client connection loop to make it a trifle more efficient.
      
      This patch also fixes a couple of bugs:
      - in exception.m, [tnt_Exception alloc]
      when we reused the old exception class, we did
      not reset its 'isa' pointer, which could lead to a crash
      when a message with a different signature was sent to
      it.
      
      - in box_dispatch (renamed from box_dispach),
      when logging for slow commands was done, txn->op could
      already be overwritten by txn_commit()/txn_abort().
      
      A comment on the naming scheme: prefixing every Tarantool
      piece of method/data structure with tnt_ would lead
      to very bloated code. So in this patch
      I decided to reduce the use this
      prefix to the client library code and some very
      generic names only.
      9b3d0a76
  22. Apr 07, 2011
    • Roman Tokarev's avatar
      Rename ObjectiveC classes. · d22531a3
      Roman Tokarev authored
      Replace all custom raise macros with general tnt_raise one.
      
      mod/box:
      
      Remove in_recover and write_to_wal fields from txn and use
       BOX_QUIET and BOX_NOT_STORE flags instead.
      Move verification of allowed commands from txn_begin to
       box_process_rw/box_process_ro functions.
      d22531a3
  23. Apr 05, 2011
    • Roman Tokarev's avatar
      Update files generated by confetti. · 927e9dbf
      Roman Tokarev authored
      Port tarantool to ObjectiveC.
      Implement basic TNTException class and
       TNTFiberException and TNTBoxException subclasses.
      Replace longjmp/setjmp with ObjectiveC exceptions.
      
      mod/box: Restructurize request processing in the following way:
      
      	try
      		begin
      		dispatch
      		commit
      	catch
      		abort
      
      where any error during request processing generate an exception.
      927e9dbf
  24. Feb 27, 2011
    • Konstantin Osipov's avatar
      Implement blueprint 'consistent-header-guards'. · 65df38a9
      Konstantin Osipov authored
      Implement
      https://blueprints.launchpad.net/tarantool/+spec/consistent-header-guards
      
      Audit all header files in tarantool code base for consistent use
      of header guards:
      - consistent naming scheme, following doc/coding-style.txt
      - header guard goes before the copyright
      - each header is self-sufficient.
      - add copyright headers where they were missing.
      
      Remove __packed__, __unused__, __noinline__ and __regparm2__ from util.h,
      since the name __unused__ conflicted with a parameter name in
      third_party/valgrind/valrgind.h, which led to a dependency in inclusion
      order between util.h and this header. The define names were not standard, I
      couldn't come up with some meaningful and standard names, and they were only
      saving some typing, while not providing any extra functionality.
      65df38a9
  25. Dec 31, 2010
    • Konstantin Osipov's avatar
      Test-runner: support for SQL. · 7ff8c17a
      Konstantin Osipov authored
      Implement a basic SQL parser.
      
      Implement SQL statements: INSERT, UPDATE, DELETE,
      PING.
      
      Add a test case that tests INSERT/SELECT/DELETE.
      
      Other changes:
      
      Remove support for result-prefix from admin.py
      Rename admin.py to tarantool (tarantool client).
      Add readline support to tarantool client.
      Make sql.g and sql.py independent from yapps
      Add gdb support to ./test-run
      Disable all optimizations when compiling with DEBUG.
      Fix a few bugs discovered by trial and error in silverbox
      protocol description.
      Add automatic reconnection in case of server disconnect
      to test connections. This is used to automatically
      reconnect to the server after server restart or reinstall.
      Implement soft and hard (with and without removal of vardir)
      server restart.
      Make show.test results independent from other tests (data I/O
      skews statistics, and there is no way to reset it without
      restarting the server).
      Add  TCP_NODELAY to fiber sockets.
      7ff8c17a
  26. Nov 15, 2010
  27. Nov 11, 2010
  28. Nov 10, 2010
  29. Oct 14, 2010
  30. Sep 08, 2010
Loading