From d0d4588ed0ece088d54371f6a071361db0081a41 Mon Sep 17 00:00:00 2001
From: Lloyd-Pottiger <yan1579196623@gmail.com>
Date: Tue, 20 Aug 2024 11:08:07 +0800
Subject: [PATCH] remove some assert

Signed-off-by: Lloyd-Pottiger <yan1579196623@gmail.com>
---
 dbms/src/IO/Compression/CompressionCodecFactory.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dbms/src/IO/Compression/CompressionCodecFactory.cpp b/dbms/src/IO/Compression/CompressionCodecFactory.cpp
index 718870659b3..e67fbd36887 100644
--- a/dbms/src/IO/Compression/CompressionCodecFactory.cpp
+++ b/dbms/src/IO/Compression/CompressionCodecFactory.cpp
@@ -93,7 +93,7 @@ CompressionCodecPtr CompressionCodecFactory::getStaticCodec<CompressionCodecLZ4>
     if (lz4_map.size() >= MAX_LZ4_MAP_SIZE)
         lz4_map.clear();
     auto [it, inserted] = lz4_map.emplace(setting.level, std::make_shared<CompressionCodecLZ4>(setting.level));
-    assert(inserted);
+    UNUSED(inserted);
     return it->second;
 }
 
@@ -113,7 +113,7 @@ CompressionCodecPtr CompressionCodecFactory::getStaticCodec<CompressionCodecLZ4H
     if (lz4hc_map.size() >= MAX_LZ4HC_MAP_SIZE)
         lz4hc_map.clear();
     auto [it, inserted] = lz4hc_map.emplace(setting.level, std::make_shared<CompressionCodecLZ4HC>(setting.level));
-    assert(inserted);
+    UNUSED(inserted);
     return it->second;
 }
 
@@ -133,7 +133,7 @@ CompressionCodecPtr CompressionCodecFactory::getStaticCodec<CompressionCodecZSTD
     if (zstd_map.size() >= MAX_ZSTD_MAP_SIZE)
         zstd_map.clear();
     auto [it, inserted] = zstd_map.emplace(setting.level, std::make_shared<CompressionCodecZSTD>(setting.level));
-    assert(inserted);
+    UNUSED(inserted);
     return it->second;
 }