sql: use region_alloc/join for temporary sql iproto tuples
obuf_alloc can not be used as a temporary buffer per sql row column, because each column can be allocated in different slabs. It makes impossible to allocate a port tuple from several intervals: [col1_begin, col1_end], [col2_begin, col2_end], ... Region has region_join method, which can realloc memory blocks from different slabs in monolite memory area - [begin, end]. It allows to use tuple_alloc for port tuples. Closes #2602
Showing
- src/box/execute.c 36 additions, 26 deletionssrc/box/execute.c
- src/box/execute.h 4 additions, 1 deletionsrc/box/execute.h
- src/box/iproto.cc 2 additions, 1 deletionsrc/box/iproto.cc
- test/sql/app.lua 1 addition, 0 deletionstest/sql/app.lua
- test/sql/iproto.result 11 additions, 0 deletionstest/sql/iproto.result
- test/sql/iproto.test.lua 5 additions, 0 deletionstest/sql/iproto.test.lua
Loading
Please register or sign in to comment