Skip to content

Commit

Permalink
[opt]: Compatible with old versions
Browse files Browse the repository at this point in the history
Signed-off-by: swj <1186093704@qq.com>
  • Loading branch information
201341 authored and wuhongsong committed Nov 3, 2023
1 parent 10a8fd4 commit c431d82
Showing 1 changed file with 5 additions and 2 deletions.
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)
<< "config no s3.enableBatchDelete info, using default value "
<< s3Opt->enableBatchDelete;
}

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

0 comments on commit c431d82

Please sign in to comment.