From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp43.i.mail.ru (smtp43.i.mail.ru [94.100.177.103]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 42ED6469710 for ; Mon, 23 Nov 2020 11:09:06 +0300 (MSK) References: <0f6505cf411bd9e7e11f42b5b6a8526b6b291ce1.1605570907.git.v.shpilevoy@tarantool.org> <5b1bfa71-72d9-7f4e-27b8-5ad3ee0b8951@tarantool.org> <39072609-6bbf-b159-f787-5e738bcb72a2@tarantool.org> From: Serge Petrenko Message-ID: Date: Mon, 23 Nov 2020 11:09:04 +0300 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format="flowed" Content-Transfer-Encoding: 8bit Content-Language: en-GB Subject: Re: [Tarantool-patches] [PATCH 08/12] raft: introduce vtab for disk and network List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Vladislav Shpilevoy , tarantool-patches@dev.tarantool.org, gorcunov@gmail.com 20.11.2020 22:40, Vladislav Shpilevoy пишет: >>>>> diff --git a/src/box/raft.c b/src/box/raft.c >>>>> index af6e71e0b..845525660 100644 >>>>> --- a/src/box/raft.c >>>>> +++ b/src/box/raft.c >>>>> @@ -29,7 +29,10 @@ >>>>>     * SUCH DAMAGE. >>>>>     */ >>>>>    #include "box.h" >>>>> +#include "error.h" >>>>> +#include "journal.h" >>>>>    #include "raft.h" >>>>> +#include "relay.h" >>>>>    #include "replication.h" >>>> Just noticed: raft.c starts depending on xrow.h in this patch. >>> This is fine. box/raft.c can depend on anything. It is raftlib.c/.h, >>> who is not allowed to depend on anything except src/lib. >> I meant you should include xrow.h here directly. > Aha, ok. I thought that it is enough to have it implicitly through other > files. But I don't mind adding it. > > ==================== > @@ -34,6 +34,7 @@ > #include "raft.h" > #include "relay.h" > #include "replication.h" > +#include "xrow.h" Thanks for the change! Yes, it's enough to have it included in some other file, but AFAIR we always include dependencies directly. Either in raft.h (if needed) or raft.c in this case. I may be mistaken though. -- Serge Petrenko