diff options
author | Tor Egge <tegge@oath.com> | 2019-01-04 11:00:01 +0000 |
---|---|---|
committer | Tor Egge <tegge@oath.com> | 2019-01-08 18:30:29 +0000 |
commit | b317568915d9e11b11acbf27763ed1b75f0534cb (patch) | |
tree | e4742602ab81db4d93e9680633e7446895063f5a /searchcore/src/tests/proton/index | |
parent | d04167de8b9cba666c2f03a5e53f5d167c8b4b50 (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(); |