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 268F22D6F6 for ; Mon, 19 Nov 2018 12:27:45 -0500 (EST) 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 MJtkzq_B9p7h for ; Mon, 19 Nov 2018 12:27:45 -0500 (EST) Received: from smtpng3.m.smailru.net (smtpng3.m.smailru.net [94.100.177.149]) (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 D5F7D2D59D for ; Mon, 19 Nov 2018 12:27:44 -0500 (EST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.0 \(3445.100.39\)) Subject: [tarantool-patches] Re: [PATCH 3/3] sql: too many autogenerated ids leads to SEGFAULT From: "n.pettik" In-Reply-To: <6128bdce00cc4c6d47c122897c195e30e0416613.1542635129.git.v.shpilevoy@tarantool.org> Date: Mon, 19 Nov 2018 20:27:42 +0300 Content-Transfer-Encoding: 7bit Message-Id: References: <6128bdce00cc4c6d47c122897c195e30e0416613.1542635129.git.v.shpilevoy@tarantool.org> 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 Cc: Imeev Mergen , Vladislav Shpilevoy > This probleam appeared because region was cleaned twice: once in Typo: problem > sqlite3VdbeHalt() and once in sqlite3VdbeDelete() which was > executed during sqlite3_finalize(). Autogenerated ids that were > saved there, were fetched after sqlite3VdbeHalt() and before > sqlite3_finalize(). In this patch region cleaning in > sqlite3VdbeHalt() were removed. Typo: was (or better - has been removed). Again, IMHO I would rephrase commit subject: sql: remove region_truncate() from sqlite3VdbeHalt() And explain in commit message why it was removed. Patch itself is OK.