Skip to content
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

Merged
merged 1 commit into from
Mar 16, 2021

Conversation

xu-chaojie
Copy link
Member

@xu-chaojie xu-chaojie commented Mar 12, 2021

…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

  • Relevant documentation/comments is changed or added
  • I acknowledge that all my contributions will be made under the project's license

std::string raftLogUri;
LOG_IF(FATAL, !conf.GetStringValue("copyset.raft_log_uri", &raftLogUri));
std::string raftLogProtocol = UriParser::GetProtocolFromUri(raftLogUri);
bool useChunkFilePoolAsWalPool = true;
Copy link
Contributor

@cw123 cw123 Mar 15, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is useChunkFilePoolAsWalPool mean?

Copy link
Member Author

@xu-chaojie xu-chaojie Mar 15, 2021

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))
Copy link
Contributor

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@ilixiaocui ilixiaocui merged commit 557b9f2 into opencurve:master Mar 16, 2021
ilixiaocui pushed a commit to ilixiaocui/curve that referenced this pull request Feb 6, 2023
Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants