[tarantool-patches] Re: [PATCH v2 2/3] box: don't set cluster uuid and instance id in initial snapshot

Konstantin Osipov kostja at tarantool.org
Fri Feb 15 16:00:31 MSK 2019


* Vladimir Davydov <vdavydov.dev at gmail.com> [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




More information about the Tarantool-patches mailing list