Skip to content

Commit 01ae82e

Browse files
committed
[opt]: Compatible with previous metaserver
Signed-off-by: swj <[email protected]>
1 parent a746f17 commit 01ae82e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

curvefs/src/metaserver/metaserver.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,11 @@ void Metaserver::InitLocalFileSystem() {
136136
void InitS3Option(const std::shared_ptr<Configuration>& conf,
137137
S3ClientAdaptorOption* s3Opt) {
138138
LOG_IF(FATAL, !conf->GetUInt64Value("s3.batchsize", &s3Opt->batchSize));
139-
LOG_IF(FATAL, !conf->GetBoolValue("s3.enableBatchDelete",
140-
&s3Opt->enableBatchDelete));
139+
bool ret =
140+
conf->GetBoolValue("s3.enableBatchDelete", &s3Opt->enableBatchDelete);
141+
LOG_IF(WARNING, ret == false)
142+
<< "config no s3.enableBatchDelete info, using default value "
143+
<< s3Opt->enableBatchDelete;
141144
}
142145

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

0 commit comments

Comments
 (0)