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

[opt]: Compatible with previous metaserver #2785

Merged
merged 1 commit into from
Nov 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions curvefs/src/metaserver/metaserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,11 @@ void Metaserver::InitLocalFileSystem() {
void InitS3Option(const std::shared_ptr<Configuration>& conf,
S3ClientAdaptorOption* s3Opt) {
LOG_IF(FATAL, !conf->GetUInt64Value("s3.batchsize", &s3Opt->batchSize));
LOG_IF(FATAL, !conf->GetBoolValue("s3.enableBatchDelete",
&s3Opt->enableBatchDelete));
bool ret =
conf->GetBoolValue("s3.enableBatchDelete", &s3Opt->enableBatchDelete);
LOG_IF(WARNING, ret == false)
Copy link
Contributor

Choose a reason for hiding this comment

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

whty not LOG_IF(WARNING, !ret)?

<< "config no s3.enableBatchDelete info, using default value "
<< s3Opt->enableBatchDelete;
}

void Metaserver::InitPartitionOption(std::shared_ptr<S3ClientAdaptor> s3Adaptor,
Expand Down