From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 0405026DCD for ; Thu, 12 Jul 2018 07:30:22 -0400 (EDT) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aobVNEt3Sc-r for ; Thu, 12 Jul 2018 07:30:21 -0400 (EDT) Received: from smtp59.i.mail.ru (smtp59.i.mail.ru [217.69.128.39]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id B8ABA26C25 for ; Thu, 12 Jul 2018 07:30:21 -0400 (EDT) Received: from [185.6.245.156] (port=46836 helo=[100.96.165.17]) by smtp59.i.mail.ru with esmtpa (envelope-from ) id 1fdZnf-00006w-Oy for tarantool-patches@freelists.org; Thu, 12 Jul 2018 14:30:19 +0300 Subject: [tarantool-patches] Re: [PATCH 0/5] Expose ephemeral spaces into Lua From: Imeev Mergen References: Message-ID: <64ce4d38-adfe-33b7-6955-69894fb681bb@tarantool.org> Date: Thu, 12 Jul 2018 14:30:19 +0300 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-subscribe: List-owner: List-post: List-archive: To: tarantool-patches@freelists.org These patches allow us use ephemeral spaces in Lua. Ephemeral spaces are special spaces that in most cases work in the same way as usual spaces (for users), but they do not touch transactions and are local to one Lua session. The are deleted by GC when there is no references to them. They can be created and deleted but cannot be altered. Till now they were used to process some sql queries. On 07/12/2018 02:16 PM, imeevma@tarantool.org wrote: > Branch: https://github.com/tarantool/tarantool/compare/imeevma/gh-3375-lua-expose-ephemeral-spaces > Issue: https://github.com/tarantool/tarantool/issues/3375 > > Mergen Imeev (5): > Create new methods for ephemeral spaces > Move some decode functions from alter.cc > Ephemeral space creation and deletion in Lua > Primary index for ephemeral spaces > Methods for ephemeral space and its index > > src/box/alter.cc | 203 +- > src/box/box.cc | 170 + > src/box/box.h | 51 + > src/box/index.cc | 172 + > src/box/index.h | 140 + > src/box/index_def.c | 102 + > src/box/index_def.h | 26 + > src/box/lua/info.h | 4 - > src/box/lua/schema.lua | 321 ++ > src/box/lua/space.cc | 669 +++ > src/box/memtx_space.c | 210 +- > src/box/memtx_tree.c | 5 + > src/box/space.h | 17 - > src/box/space_def.c | 150 + > src/box/space_def.h | 15 + > src/box/sql.c | 10 +- > src/box/sysview_engine.c | 22 - > src/box/vinyl.c | 22 - > test/box/ephemeral_space.result | 8461 +++++++++++++++++++++++++++++++++++++ > test/box/ephemeral_space.test.lua | 1864 ++++++++ > test/engine/iterator.result | 2 +- > 21 files changed, 12335 insertions(+), 301 deletions(-) > create mode 100644 test/box/ephemeral_space.result > create mode 100644 test/box/ephemeral_space.test.lua >