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 39A86261B4 for ; Thu, 14 Jun 2018 11:04:42 -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 0yFnMX7R1Ryg for ; Thu, 14 Jun 2018 11:04:42 -0400 (EDT) Received: from smtp51.i.mail.ru (smtp51.i.mail.ru [94.100.177.111]) (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 9500A25FAE for ; Thu, 14 Jun 2018 11:04:41 -0400 (EDT) From: Ilya Markov Subject: [tarantool-patches] [box.ctl 0/3] Introduce box.ctl.on_ctl_event trigger Date: Thu, 14 Jun 2018 18:04:26 +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: georgy@tarantool.org Cc: tarantool-patches@freelists.org Ilya Markov (3): box.ctl: Introduce stab box.ctl.on_ctl_event box.ctl: Add on_ctl_event trigger calls box.ctl: Add replica error event branch: gh-3159-box-on-ctl-event src/box/CMakeLists.txt | 1 + src/box/alter.cc | 1 + src/box/box.cc | 53 +++++++- src/box/box.h | 1 + src/box/ctl.c | 63 +++++++++ src/box/ctl.h | 82 ++++++++++++ src/box/engine.c | 14 ++ src/box/lua/cfg.cc | 12 ++ src/box/lua/ctl.c | 55 ++++++++ src/box/lua/ctl.h | 2 + src/box/lua/load_cfg.lua | 10 +- src/box/memtx_engine.c | 2 +- src/box/relay.cc | 7 + src/box/replication.cc | 14 ++ src/cfg.c | 37 ++++++ src/cfg.h | 4 + test/replication/master_onctl.lua | 37 ++++++ test/replication/onctl.result | 262 +++++++++++++++++++++++++++++++++++++ test/replication/onctl.test.lua | 108 +++++++++++++++ test/replication/replica_onctl.lua | 34 +++++ test/replication/suite.cfg | 1 + 21 files changed, 796 insertions(+), 4 deletions(-) create mode 100644 src/box/ctl.c create mode 100644 src/box/ctl.h create mode 100644 test/replication/master_onctl.lua create mode 100644 test/replication/onctl.result create mode 100644 test/replication/onctl.test.lua create mode 100644 test/replication/replica_onctl.lua -- 2.7.4