Skip to content

Commit

Permalink
2
Browse files Browse the repository at this point in the history
  • Loading branch information
xinyiZzz committed Dec 20, 2024
1 parent 75d0874 commit f3548cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions be/test/olap/page_cache_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f3548cb

Please sign in to comment.