-
Notifications
You must be signed in to change notification settings - Fork 526
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
chunkserver: do not init and expose walpool when not use curve protoc… #291
Conversation
std::string raftLogUri; | ||
LOG_IF(FATAL, !conf.GetStringValue("copyset.raft_log_uri", &raftLogUri)); | ||
std::string raftLogProtocol = UriParser::GetProtocolFromUri(raftLogUri); | ||
bool useChunkFilePoolAsWalPool = true; |
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.
what is useChunkFilePoolAsWalPool mean?
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.
use chunkfile pool as wal pool
FilePoolOptions walFilePoolOptions; | ||
InitWalFilePoolOptions(&conf, &walFilePoolOptions); | ||
kWalFilePool = std::make_shared<FilePool>(fs); | ||
LOG_IF(FATAL, false == kWalFilePool->Initialize(walFilePoolOptions)) |
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.
outputs info log if succeeds
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.
done
Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
…ol in raftLogUri
What problem does this PR solve?
Issue Number: close #xxx
Problem Summary:
What is changed and how it works?
What's Changed:
How it Works:
Side effects(Breaking backward compatibility? Performance regression?):
Check List