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 17A9028442 for ; Fri, 16 Aug 2019 14:37:59 -0400 (EDT) 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 mTmcgj6aFnX7 for ; Fri, 16 Aug 2019 14:37:59 -0400 (EDT) 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 51F4928438 for ; Fri, 16 Aug 2019 14:37:58 -0400 (EDT) From: Ilya Kosarev Subject: [tarantool-patches] [PATCH v2 0/6] refactoring: remove exceptions from triggers Date: Fri, 16 Aug 2019 21:37:46 +0300 Message-Id: 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: georgy@tarantool.org, i.kosarev@corp.mail.ru, Ilya Kosarev Triggers don't throw exceptions any more. Now they have return codes to report errors. Changes in v2: 1) Patch is divided into parts. 2) Corresponding comments are updated according to code changes. Branch: https://github.com/tarantool/tarantool/tree/i.kosarev/gh-4247-remove-exceptions-from-triggers Issue: https://github.com/tarantool/tarantool/issues/4247 Ilya Kosarev (6): refactoring: remove exceptions from triggers except alter.cc refactoring: remove exceptions from used in alter.cc outer functions refactoring: replace most obvious exceptions in alter.cc refactoring: replace exceptions in most alter.cc functions refactoring: replace some more exceptions in alter.cc refactoring: replace remaining exceptions in alter.cc & update comments src/box/alter.cc | 3297 +++++++++++++++++++++-------------- src/box/applier.cc | 18 +- src/box/ck_constraint.c | 9 +- src/box/ck_constraint.h | 4 +- src/box/identifier.h | 10 - src/box/iproto.cc | 3 +- src/box/lua/call.c | 5 +- src/box/lua/sequence.c | 3 +- src/box/lua/space.cc | 3 +- src/box/memtx_space.c | 17 +- src/box/relay.cc | 5 +- src/box/replication.cc | 193 +- src/box/replication.h | 2 +- src/box/schema.cc | 28 +- src/box/schema.h | 17 +- src/box/sequence.h | 9 - src/box/session.cc | 3 +- src/box/tuple.h | 69 - src/box/txn.c | 10 +- src/box/user.cc | 9 +- src/box/user.h | 14 +- src/box/vinyl.c | 44 +- src/lib/core/fiber.c | 3 +- src/lib/core/trigger.cc | 23 +- src/lib/core/trigger.h | 2 +- src/lua/trigger.c | 7 +- src/main.cc | 3 +- test/unit/cbus.c | 3 +- test/unit/swim.c | 6 +- test/unit/swim_test_utils.c | 3 +- 30 files changed, 2240 insertions(+), 1582 deletions(-) -- 2.17.1