diff --git a/be/src/olap/storage_engine.cpp b/be/src/olap/storage_engine.cpp index f0024888c48af0..eedaf850ae0a9f 100644 --- a/be/src/olap/storage_engine.cpp +++ b/be/src/olap/storage_engine.cpp @@ -463,7 +463,7 @@ Status StorageEngine::_check_file_descriptor_number() { << ", use default configuration instead."; return Status::OK(); } - if (getenv("SKIP_CHECK_ULIMIT") == "true") { + if (std::string(getenv("SKIP_CHECK_ULIMIT")) == "true") { LOG(INFO) << "the ‘ulimit’ value check is skipped"; return Status::OK(); }