diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2016-10-03 14:16:37 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2016-10-03 16:52:39 +0000 |
commit | f1eeba4aee1020625205ccf5223128ad8f68265b (patch) | |
tree | 02bbe562c1e1c4d4f76e9037a05daf363953f446 /searchlib | |
parent | 468fc26fb7f543f4d55e18d381848920047daf75 (diff) |
Handle variations to alignment smoother.
Diffstat (limited to 'searchlib')
-rw-r--r-- | searchlib/src/tests/datastore/logdatastore_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searchlib/src/tests/datastore/logdatastore_test.cpp b/searchlib/src/tests/datastore/logdatastore_test.cpp index 12a7fc28a7b..e246fcee981 100644 --- a/searchlib/src/tests/datastore/logdatastore_test.cpp +++ b/searchlib/src/tests/datastore/logdatastore_test.cpp @@ -146,7 +146,7 @@ TEST("test that DirectIOPadding works accordng to spec") { FastOS_File file("directio.test"); file.EnableDirectIO(); EXPECT_TRUE(file.OpenReadWrite()); - Alloc buf(DefaultAlloc::create(FILE_SIZE, MMapAllocator::HUGEPAGE_SIZE, 4096)); + Alloc buf(DefaultAlloc::create(FILE_SIZE, MemoryAllocator::HUGEPAGE_SIZE, 4096)); memset(buf.get(), 'a', buf.size()); EXPECT_EQUAL(FILE_SIZE, file.Write2(buf.get(), FILE_SIZE)); size_t padBefore(0); |