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 EC3FC213CF for ; Fri, 15 Feb 2019 08:00:33 -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 A-a1Y2dqwqDv for ; Fri, 15 Feb 2019 08:00:33 -0500 (EST) Received: from smtp48.i.mail.ru (smtp48.i.mail.ru [94.100.177.108]) (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 9A0EF213CE for ; Fri, 15 Feb 2019 08:00:33 -0500 (EST) Received: from [185.6.245.178] (port=59056 helo=atlas.local) by smtp48.i.mail.ru with esmtpa (envelope-from ) id 1gud6W-0000vm-3E for tarantool-patches@freelists.org; Fri, 15 Feb 2019 16:00:32 +0300 Date: Fri, 15 Feb 2019 16:00:31 +0300 From: Konstantin Osipov Subject: [tarantool-patches] Re: [PATCH v2 2/3] box: don't set cluster uuid and instance id in initial snapshot Message-ID: <20190215130031.GC24683@chai> References: <2686110152a446ba3d039cf0a644b1c6d102f813.1550232829.git.vdavydov.dev@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2686110152a446ba3d039cf0a644b1c6d102f813.1550232829.git.vdavydov.dev@gmail.com> 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 * Vladimir Davydov [19/02/15 15:26]: > @@ -3012,7 +3012,7 @@ on_replace_dd_schema(struct trigger * /* trigger */, void *event) > const char *key = tuple_field_cstr_xc(new_tuple ? new_tuple : old_tuple, > BOX_SCHEMA_FIELD_KEY); > if (strcmp(key, "cluster") == 0) { > - if (new_tuple == NULL) > + if (old_tuple != NULL) > tnt_raise(ClientError, ER_REPLICASET_UUID_IS_RO); > tt_uuid uu; > tuple_field_uuid_xc(new_tuple, BOX_CLUSTER_FIELD_UUID, &uu); Please allow to change cluster uuid after bootstrap. -- Konstantin Osipov, Moscow, Russia, +7 903 626 22 32 http://tarantool.io - www.twitter.com/kostja_osipov