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