From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-f68.google.com (mail-lf1-f68.google.com [209.85.167.68]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 43C5B469719 for ; Sat, 15 Feb 2020 20:34:31 +0300 (MSK) Received: by mail-lf1-f68.google.com with SMTP id v201so8911606lfa.11 for ; Sat, 15 Feb 2020 09:34:31 -0800 (PST) Date: Sat, 15 Feb 2020 20:34:28 +0300 From: Konstantin Osipov Message-ID: <20200215173428.GB19902@atlas> References: <20200214140339.4085-1-gorcunov@gmail.com> <20200214140339.4085-3-gorcunov@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200214140339.4085-3-gorcunov@gmail.com> Subject: Re: [Tarantool-patches] [PATCH v10 2/4] box/applier: add missing diag_set on region_alloc failure List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Cyrill Gorcunov Cc: tml * Cyrill Gorcunov [20/02/14 17:06]: > In case if we're hitting memory limit allocating triggers > we should setup diag error to prevent nil dereference > in diag_raise call (for example from applier_apply_tx). > > Note that there are region_alloc_xc helpers which are > throwing errors but as far as I understand we need the > rollback action to process first instead of immediate > throw/catch thus we use diag_set. > > Acked-by: Sergey Ostanevich > Signed-off-by: Cyrill Gorcunov lgtm -- Konstantin Osipov, Moscow, Russia