Tarantool development patches archive
 help / color / mirror / Atom feed
* [tarantool-patches] [PATCH 0/2] sql: SQL bindings refactoring
@ 2018-04-11 19:35 Nikita Pettik
  2018-04-11 19:35 ` [tarantool-patches] [PATCH 1/2] sql: fix tuple format leak Nikita Pettik
  2018-04-11 19:35 ` [tarantool-patches] [PATCH 2/2] sql: refactor cursor closing routine Nikita Pettik
  0 siblings, 2 replies; 6+ messages in thread
From: Nikita Pettik @ 2018-04-11 19:35 UTC (permalink / raw)
  To: tarantool-patches; +Cc: v.shpilevoy, Nikita Pettik

Branch: https://github.com/tarantool/tarantool/tree/np/gh-3332-format-leak-fix
Issue: https://github.com/tarantool/tarantool/issues/3332

First patch introduces fix for leaked tuple formats: under certain
circumstances (described in commit message) some tuples from ephemeral
space may remain referenced after space's death and as a result, format
can't be destroyed.

Second patch consists of slight refactoring of cursor closing routine.

Nikita Pettik (2):
  sql: fix tuple format leak
  sql: refactor cursor closing routine

 src/box/sql.c                                   | 60 +++++++++++--------------
 src/box/sql/cursor.c                            | 46 ++++++++++---------
 src/box/sql/cursor.h                            |  6 ++-
 src/box/sql/tarantoolInt.h                      |  8 ++--
 src/box/sql/vdbe.c                              | 35 +++++----------
 src/box/sql/vdbeaux.c                           |  2 +-
 test/sql-tap/gh-3332-tuple-format-leak.test.lua | 31 +++++++++++++
 7 files changed, 101 insertions(+), 87 deletions(-)
 create mode 100755 test/sql-tap/gh-3332-tuple-format-leak.test.lua

-- 
2.15.1

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-04-13  8:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-11 19:35 [tarantool-patches] [PATCH 0/2] sql: SQL bindings refactoring Nikita Pettik
2018-04-11 19:35 ` [tarantool-patches] [PATCH 1/2] sql: fix tuple format leak Nikita Pettik
2018-04-12 11:58   ` [tarantool-patches] " Vladislav Shpilevoy
2018-04-13  8:39     ` n.pettik
2018-04-11 19:35 ` [tarantool-patches] [PATCH 2/2] sql: refactor cursor closing routine Nikita Pettik
2018-04-12 13:28   ` [tarantool-patches] " Vladislav Shpilevoy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox