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 DE77E469719 for ; Tue, 10 Nov 2020 10:30:46 +0300 (MSK) Received: by mail-lj1-f194.google.com with SMTP id v20so5003461ljk.8 for ; Mon, 09 Nov 2020 23:30:46 -0800 (PST) Date: Tue, 10 Nov 2020 10:30:44 +0300 From: Cyrill Gorcunov Message-ID: <20201110073044.GC2250@grain> References: <657afb770bc7d6e300758dc47e403999ceb9691b.1604966200.git.v.shpilevoy@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <657afb770bc7d6e300758dc47e403999ceb9691b.1604966200.git.v.shpilevoy@tarantool.org> Subject: Re: [Tarantool-patches] [PATCH v2 3/4] raft: check box_raft is inited before usage List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Vladislav Shpilevoy Cc: tarantool-patches@dev.tarantool.org On Tue, Nov 10, 2020 at 12:58:53AM +0100, Vladislav Shpilevoy wrote: > Since box_raft is now initialized at runtime and is used from > several subsystems (memtx for snapshots; applier for accepting > rows; box.info for monitoring), it may be easy to screw the > intialization order and accidentally use the not initialized > global raft object. Ack