diff options
author | Tor Egge <tegge@oath.com> | 2019-01-04 11:00:01 +0000 |
---|---|---|
committer | Tor Egge <tegge@oath.com> | 2019-01-04 14:24:18 +0000 |
commit | 0fb6c8f4efd731e57c867246802aae12905a0763 (patch) | |
tree | c4fa1d06f43082d16162bdad21b8984cde980586 /searchcore/src/tests/proton/index | |
parent | 9c5f70ab933455d94a23cd58bc3f394206186be8 (diff) |
Don't apply old lid space compaction operation to newer index.
Diffstat (limited to 'searchcore/src/tests/proton/index')
-rw-r--r-- | searchcore/src/tests/proton/index/index_writer/index_writer_test.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/searchcore/src/tests/proton/index/index_writer/index_writer_test.cpp b/searchcore/src/tests/proton/index/index_writer/index_writer_test.cpp index 8f5d998b77a..d92ac0dcdc2 100644 --- a/searchcore/src/tests/proton/index/index_writer/index_writer_test.cpp +++ b/searchcore/src/tests/proton/index/index_writer/index_writer_test.cpp @@ -124,6 +124,14 @@ TEST_F("require that compactLidSpace is forwarded to index manager", Fixture) EXPECT_EQUAL(4u, f.mim.compactSerial); } +TEST_F("require that old compactLidSpace is not forwarded to index manager", Fixture) +{ + f.mim.flushed = 10; + f.iw.compactLidSpace(4, 2); + EXPECT_EQUAL(0u, f.mim.wantedLidLimit); + EXPECT_EQUAL(0u, f.mim.compactSerial); +} + TEST_MAIN() { TEST_RUN_ALL(); |