From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-f194.google.com (mail-lj1-f194.google.com [209.85.208.194]) (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 7A74F46971A for ; Wed, 4 Dec 2019 20:54:52 +0300 (MSK) Received: by mail-lj1-f194.google.com with SMTP id a13so279461ljm.10 for ; Wed, 04 Dec 2019 09:54:52 -0800 (PST) Date: Wed, 4 Dec 2019 20:54:50 +0300 From: Konstantin Osipov Message-ID: <20191204175450.GD19235@atlas> References: <0218889f41f954a10bbe36c6d0c43f32fa7dd4b4.1575468493.git.roman.habibov@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0218889f41f954a10bbe36c6d0c43f32fa7dd4b4.1575468493.git.roman.habibov@tarantool.org> Subject: Re: [Tarantool-patches] [PATCH v2 3/3] box: let only box handle constraint dup errors List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Roman Khabibov Cc: tarantool-patches@dev.tarantool.org, v.shpilevoy@tarantool.org * Roman Khabibov [19/12/04 19:25]: > + * Check if constraint with @a name exists within @a space. Call > + * diag_set() if it is so. > + * > + * @param space Space to find constraint within. > + * @param name Constraint name. > + * > + * @retval true Constraint exists. > + * @retval false Doesn't exist. > + */ > +static inline bool > +space_constraint_exists(struct space *space, const char *name) > +{ Looks like it belongs to space.h/c -- Konstantin Osipov, Moscow, Russia