From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp52.i.mail.ru (smtp52.i.mail.ru [94.100.177.112]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 01FDB469719 for ; Mon, 17 Feb 2020 15:12:13 +0300 (MSK) From: Chris Sosnin Date: Mon, 17 Feb 2020 15:12:08 +0300 Message-Id: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 0/4] box: session settings fixes List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: korablev@tarantool.org, tarantool-patches@dev.tarantool.org The first patch just merges all modules into one array, so the binary search will work once for all settings. The second patch is implementation of the binary search. The last two patches add frontend for accessing session settings: Lua table and SQL statement respectively. branch: https://github.com/tarantool/tarantool/tree/ksosnin/gh-4712-search-settings issue #1: https://github.com/tarantool/tarantool/issues/4711 issue #2: https://github.com/tarantool/tarantool/issues/4712 Chris Sosnin (4): box: replace session_settings modules with a single array box: add binary search for _session_settings space box: provide a user friendly frontend for accessing session settings sql: provide a user friendly frontend for accessing session settings src/box/lua/session.c | 92 ++++++++ src/box/session.cc | 1 + src/box/session.h | 2 + src/box/session_settings.c | 214 +++++++++++------- src/box/session_settings.h | 53 +++-- src/box/sql.c | 5 - src/box/sql/build.c | 104 ++++----- src/box/sql/parse.y | 5 + src/box/sql/sqlInt.h | 11 + src/box/sql/vdbe.c | 50 ++++ ...rontend.result => session_settings.result} | 149 ++++++++++-- ...end.test.lua => session_settings.test.lua} | 61 ++++- 12 files changed, 571 insertions(+), 176 deletions(-) rename test/box/{gh-4511-access-settings-from-any-frontend.result => session_settings.result} (71%) rename test/box/{gh-4511-access-settings-from-any-frontend.test.lua => session_settings.test.lua} (65%) -- 2.21.1 (Apple Git-122.3)