From 2e758530c2dfc2bc665a980da7b5c60d778e8a52 Mon Sep 17 00:00:00 2001 From: Geir Storli Date: Fri, 25 Nov 2022 12:21:13 +0000 Subject: Add shared constant for PAGE_SIZE. --- vespalib/src/tests/datastore/array_store/array_store_test.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'vespalib/src/tests/datastore/array_store') diff --git a/vespalib/src/tests/datastore/array_store/array_store_test.cpp b/vespalib/src/tests/datastore/array_store/array_store_test.cpp index d46df668df6..aa35fb24823 100644 --- a/vespalib/src/tests/datastore/array_store/array_store_test.cpp +++ b/vespalib/src/tests/datastore/array_store/array_store_test.cpp @@ -480,7 +480,8 @@ struct ByteStoreTest : public ArrayStoreTest { ByteStoreTest() : ArrayStoreTest(ByteStoreTest::ArrayStoreType:: optimizedConfigForHugePage(1023, vespalib::alloc::MemoryAllocator::HUGEPAGE_SIZE, - 4_Ki, 8_Ki, ALLOC_GROW_FACTOR)) {} + vespalib::alloc::MemoryAllocator::PAGE_SIZE, + 8_Ki, ALLOC_GROW_FACTOR)) {} }; TEST_F(ByteStoreTest, offset_in_EntryRefT_is_within_bounds_when_allocating_memory_buffers_where_wanted_number_of_bytes_is_not_a_power_of_2_and_less_than_huge_page_size) -- cgit v1.2.3