From f3548cb4526e44d3dba47b66249522c073795744 Mon Sep 17 00:00:00 2001 From: Zou Xinyi Date: Fri, 20 Dec 2024 19:43:19 +0800 Subject: [PATCH] 2 --- be/test/olap/page_cache_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/be/test/olap/page_cache_test.cpp b/be/test/olap/page_cache_test.cpp index 6cca6c9d4c4d65..a6b9300c1057f7 100644 --- a/be/test/olap/page_cache_test.cpp +++ b/be/test/olap/page_cache_test.cpp @@ -107,11 +107,11 @@ TEST_F(StoragePageCacheTest, data_page_only) { for (int i = 0; i < 10 * kNumShards; ++i) { StoragePageCache::CacheKey key("bcde", 0, i); PageCacheHandle handle; - auto* data = new DataPage(1024); + auto* data = new DataPage(1024, true, page_type); cache.insert(key, data, &handle, page_type, false); auto found = cache.lookup(key, &handle, page_type); // after handle destruct, free data. EXPECT_FALSE(found); - data = new DataPage(1024); + data = new DataPage(1024, true, page_type); cache.insert(key, data, &handle, page_type, false); found = cache.lookup(key, &handle, page_type); EXPECT_TRUE(found);