From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtpng1.m.smailru.net (smtpng1.m.smailru.net [94.100.181.251]) (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 052A846971A for ; Fri, 13 Dec 2019 16:49:46 +0300 (MSK) Date: Fri, 13 Dec 2019 16:49:46 +0300 From: Nikita Pettik Message-ID: <20191213134946.GC25163@tarantool.org> References: <93d0509d-bb38-31c4-9467-d6b3be4b6e6e@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <93d0509d-bb38-31c4-9467-d6b3be4b6e6e@tarantool.org> Subject: Re: [Tarantool-patches] [PATCH v2 05/16] sql: move sql_finalize() to execute.h List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Vladislav Shpilevoy Cc: tarantool-patches@dev.tarantool.org On 03 Dec 23:51, Vladislav Shpilevoy wrote: > Thanks for the patch! > > On 20/11/2019 22:28, Nikita Pettik wrote: > > We are going to make prepared statement cache be session local. Hence, > > Session local? I thought we've decided to use a global > cache. Fixed commit message: Author: Nikita Pettik Date: Wed Oct 23 00:04:20 2019 +0300 sql: move sql_finalize() to execute.h We are going to introduce prepared statement cache. On statement's deallocation we should release all resources which is done by sql_finalize(). Now it is declared in sql/sqlInt.h header, which accumulates almost all SQL related functions. To avoid including such a huge header to use single function, let's move its signature to box/execute.h Need for #2592 > > when sessions is destroyed we should erase its cache and deallocate each > > prepared statement in it. As a consequence, we should be able to call > > sql_finalize() from box/ submodule. So let's move its signature to > > box/execute.h > > > > Need for #2592