Tarantool development patches archive
 help / color / mirror / Atom feed
* [PATCH 0/4] Fix sql_bind leak
@ 2018-12-10 21:40 Vladislav Shpilevoy
  2018-12-10 21:40 ` [PATCH 1/4] sql: remove sync from sql_request/response Vladislav Shpilevoy
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Vladislav Shpilevoy @ 2018-12-10 21:40 UTC (permalink / raw)
  To: tarantool-patches; +Cc: vdavydov.dev

The patchset makes struct sql_request consist of raw undecoded
MessagePack and moves its decoding into TX thread as suggested by
Kostja. Now sql_bind parameter array is decoded and freed in TX
thread in a single function. On the contrary, before the patch,
sql_bind parameters array was allocated on iproto thread region
and never was freed.

As a follow up it allowed to move xrow_decode_sql and struct
sql_request to xrow lib where all other binary requests live.

Branch: http://github.com/tarantool/tarantool/tree/gerold103/gh-3828-bind-parameters-leak
Issue: https://github.com/tarantool/tarantool/issues/3828

Vladislav Shpilevoy (4):
  sql: remove sync from sql_request/response
  Revert "box: store sql text and length in sql_request"
  sql: decode bind parameters in TX thread
  sql: move sql_request and xrow_decode_sql to xrow lib

 src/box/execute.c | 100 +++++++---------------------------------------
 src/box/execute.h |  56 +++++++++++---------------
 src/box/iproto.cc |  17 ++++++--
 src/box/xrow.c    |  46 +++++++++++++++++++++
 src/box/xrow.h    |  19 +++++++++
 5 files changed, 118 insertions(+), 120 deletions(-)

-- 
2.17.2 (Apple Git-113)

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

end of thread, other threads:[~2018-12-18 12:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-10 21:40 [PATCH 0/4] Fix sql_bind leak Vladislav Shpilevoy
2018-12-10 21:40 ` [PATCH 1/4] sql: remove sync from sql_request/response Vladislav Shpilevoy
2018-12-10 21:40 ` [PATCH 2/4] Revert "box: store sql text and length in sql_request" Vladislav Shpilevoy
2018-12-10 21:40 ` [PATCH 3/4] sql: decode bind parameters in TX thread Vladislav Shpilevoy
2018-12-10 21:40 ` [PATCH 4/4] sql: move sql_request and xrow_decode_sql to xrow lib Vladislav Shpilevoy
2018-12-18 12:02 ` [PATCH 0/4] Fix sql_bind leak Vladimir Davydov

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