From 50236d2beaab04e4f3dc6dd8cd7e03946e8658c7 Mon Sep 17 00:00:00 2001 From: Isabel Zhou Date: Wed, 13 May 2026 14:15:08 -0400 Subject: [PATCH] refactor: replace boost::container::deque with std::deque Use std::deque in codec_test.cc and codec_bench_test.cc; the boost::container variant adds nothing here. Also drop the boost/container/deque.hpp include from row_codec.{h,cc} and tablet_impl.cc, where it was already unused. No behavior change. --- src/codec/codec_bench_test.cc | 3 ++- src/codec/codec_test.cc | 4 ++-- src/codec/row_codec.cc | 1 - src/codec/row_codec.h | 1 - src/tablet/tablet_impl.cc | 1 - 5 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/codec/codec_bench_test.cc b/src/codec/codec_bench_test.cc index ae1b0b3255f..9271711559a 100644 --- a/src/codec/codec_bench_test.cc +++ b/src/codec/codec_bench_test.cc @@ -14,6 +14,7 @@ * limitations under the License. */ +#include #include #include "base/kv_iterator.h" @@ -35,7 +36,7 @@ class CodecBenchmarkTest : public ::testing::Test { }; void RunHasTs(::openmldb::storage::DataBlock* db) { - boost::container::deque> data; + std::deque> data; uint32_t total_block_size = 0; for (uint32_t i = 0; i < 1000; i++) { data.emplace_back(1000, std::move(::openmldb::base::Slice(db->data, db->size))); diff --git a/src/codec/codec_test.cc b/src/codec/codec_test.cc index 054f431dfca..aacbbbf59d2 100644 --- a/src/codec/codec_test.cc +++ b/src/codec/codec_test.cc @@ -14,11 +14,11 @@ * limitations under the License. */ +#include #include #include #include -#include "boost/container/deque.hpp" #include "codec/encrypt.h" #include "codec/row_codec.h" #include "gtest/gtest.h" @@ -36,7 +36,7 @@ class CodecTest : public ::testing::Test { }; TEST_F(CodecTest, EncodeRows) { - boost::container::deque> data; + std::deque> data; std::string test1 = "value1"; std::string test2 = "value2"; std::string empty; diff --git a/src/codec/row_codec.cc b/src/codec/row_codec.cc index 9413edced23..10b2bed7995 100644 --- a/src/codec/row_codec.cc +++ b/src/codec/row_codec.cc @@ -21,7 +21,6 @@ #include #include "base/glog_wrapper.h" -#include "boost/container/deque.hpp" #include "codec/schema_codec.h" #include "codec/row_codec.h" #include "storage/segment.h" diff --git a/src/codec/row_codec.h b/src/codec/row_codec.h index f2ac1f69ea7..489798f5a65 100644 --- a/src/codec/row_codec.h +++ b/src/codec/row_codec.h @@ -23,7 +23,6 @@ #include #include "base/status.h" -#include "boost/container/deque.hpp" #include "butil/iobuf.h" #include "codec/codec.h" #include "storage/segment.h" diff --git a/src/tablet/tablet_impl.cc b/src/tablet/tablet_impl.cc index 5a99b7b23e7..57eb263ff70 100644 --- a/src/tablet/tablet_impl.cc +++ b/src/tablet/tablet_impl.cc @@ -45,7 +45,6 @@ #include "base/strings.h" #include "base/sys_info.h" #include "boost/bind.hpp" -#include "boost/container/deque.hpp" #include "brpc/controller.h" #include "butil/iobuf.h" #include "codec/codec.h"