From edac46bc41d994ab6f29793abcf093248f4ba1b3 Mon Sep 17 00:00:00 2001
From: freeoneplus <suyijia@selectdb.com>
Date: Wed, 11 Dec 2024 11:40:09 +0800
Subject: [PATCH] add skip_check_ulimit config

---
 be/src/olap/storage_engine.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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();
     }