-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat:import braft #130
feat:import braft #130
Conversation
* feat: import braft * fix: fix braft.cmake * fix:fix import braft cmake * fix: fix fetchcontent_populate * fix: fix find gflags brpc braft cmake * add independent code and fix brpc * fix: delete unnecessary comments * fix: fix fetch content to ExternalProject_Add * fix: add counter.pb.h and counter.pb.cc --------- Co-authored-by: century <[email protected]>
…ation#134) * feat: import braft * fix: fix braft.cmake * fix:fix import braft cmake * fix: fix fetchcontent_populate * fix: fix find gflags brpc braft cmake * add independent code and fix brpc * fix: delete unnecessary comments * fix: fix fetch content to ExternalProject_Add * fix: add counter.pb.h and counter.pb.cc * fix: fixed a bug where the compiler could not find glog --------- Co-authored-by: century <[email protected]>
引入braft到counter模块之外模块的问题 |
* fix:fixed a bug that included braft
a64e4ca
to
fbc8b0c
Compare
…omFoundation#180) fix:Synchronize the latest changes to the import-braft branch
src/counter/counter.pb.cc
Outdated
@@ -0,0 +1,996 @@ | |||
// Generated by the protocol buffer compiler. DO NOT EDIT! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个不应该被ignore掉嘛?怎么还能提交上来
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
没啥问题了 整个文件夹都会删掉 单纯的做验证引入是否正确用的
cmake/braft.cmake
Outdated
SET(BRAFT_INCLUDE_DIR "${BRAFT_INSTALL_DIR}/include" CACHE PATH "braft include directory." FORCE) | ||
SET(BRAFT_LIBRARIES "${BRAFT_INSTALL_DIR}/lib/libbraft.a" CACHE FILEPATH "braft library." FORCE) | ||
|
||
SET(NUM_OF_PROCESSOR 1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pikiwidb里的cmake有一个代码是获取cpu核数的,可以复用那个代码。只用一个cpu编译会比较慢。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好的
tests/hash_test.go
Outdated
@@ -12,7 +12,7 @@ import ( | |||
"log" | |||
"strconv" | |||
"time" | |||
|
|||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里好像是一个没必要的空格?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好的
The base branch was changed.
973b426
into
OpenAtomFoundation:import-braft
* feat: import braft --------- Co-authored-by: century <[email protected]> Co-authored-by: alexstocks <[email protected]> Co-authored-by: dingxiaoshuai123 <[email protected]>
* feat:import braft (#130) * feat: Implementing Redis-Raft commands to build a cluster. (#136) Co-authored-by: panlei-coder <[email protected]> Co-authored-by: century <[email protected]> Co-authored-by: panlei-coder <[email protected]> Co-authored-by: alexstocks <[email protected]> Co-authored-by: dingxiaoshuai123 <[email protected]> Co-authored-by: longfar <[email protected]>
Import the third-party library braft,目前是把braft的example的counter文件夹直接copy到了pikiwidb/src目录下作为子文件夹编译的,主要是为了验证braft引入的正确性,后面合并的时候会删除掉