From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtpng2.m.smailru.net (smtpng2.m.smailru.net [94.100.179.3]) (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 4CC84446439 for ; Tue, 17 Nov 2020 03:02:29 +0300 (MSK) From: Vladislav Shpilevoy Date: Tue, 17 Nov 2020 01:02:15 +0100 Message-Id: In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 01/12] raft: move sources to raftlib.h/.c List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tarantool-patches@dev.tarantool.org, gorcunov@gmail.com, sergepetrenko@tarantool.org The commit renames raft.h and raft.c to raftlib.h and raftlib.c. This is done to prepare to Raft split into src/box/ and src/lib/raft. The commit is not atomic, the build won't work here. Because if raft is renamed to raftlib, and in the same commit new raft.c and raft.h are added, git thinks the original file was changed, and ruins all the git history. By splitting move of raft to raftlib and introduction of box/raft into 2 commits the git history is saved. Part of #5303 --- src/box/CMakeLists.txt | 1 + src/box/{raft.c => raftlib.c} | 0 src/box/{raft.h => raftlib.h} | 0 3 files changed, 1 insertion(+) rename src/box/{raft.c => raftlib.c} (100%) rename src/box/{raft.h => raftlib.h} (100%) diff --git a/src/box/CMakeLists.txt b/src/box/CMakeLists.txt index d1667796a..fcf779379 100644 --- a/src/box/CMakeLists.txt +++ b/src/box/CMakeLists.txt @@ -169,6 +169,7 @@ add_library(box STATIC port.c txn.c txn_limbo.c + raftlib.c raft.c box.cc gc.c diff --git a/src/box/raft.c b/src/box/raftlib.c similarity index 100% rename from src/box/raft.c rename to src/box/raftlib.c diff --git a/src/box/raft.h b/src/box/raftlib.h similarity index 100% rename from src/box/raft.h rename to src/box/raftlib.h -- 2.24.3 (Apple Git-128)