diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2019-01-03 23:09:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-03 23:09:22 +0100 |
commit | 95addf42546ee16c5979a92ebd7eff6f8b51003c (patch) | |
tree | 9a5cf77e156ce1c7238959577b1c907e10bd0a95 /searchcore/src/tests/proton/index/index_writer | |
parent | f4a5dd6d202bd6ca5aba9a878947ade59659dd5b (diff) |
Revert "Compact lid space on source selector."
Diffstat (limited to 'searchcore/src/tests/proton/index/index_writer')
-rw-r--r-- | searchcore/src/tests/proton/index/index_writer/index_writer_test.cpp | 18 |
1 files changed, 2 insertions, 16 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..0d9fe42b978 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 @@ -33,11 +33,8 @@ struct MyIndexManager : public test::MockIndexManager SerialNum current; SerialNum flushed; SerialNum commitSerial; - uint32_t wantedLidLimit; - SerialNum compactSerial; MyIndexManager() : puts(), removes(), current(0), flushed(0), - commitSerial(0), - wantedLidLimit(0), compactSerial(0) + commitSerial(0) { } std::string getPut(uint32_t lid) { @@ -65,10 +62,6 @@ struct MyIndexManager : public test::MockIndexManager virtual SerialNum getFlushedSerialNum() const override { return flushed; } - void compactLidSpace(uint32_t lidLimit, SerialNum serialNum) override { - wantedLidLimit = lidLimit; - compactSerial = serialNum; - } }; struct Fixture @@ -102,7 +95,7 @@ struct Fixture } }; -TEST_F("require that index writer ignores old operations", Fixture) +TEST_F("require that index adapter ignores old operations", Fixture) { f.mim.flushed = 10; f.put(8, 1); @@ -117,13 +110,6 @@ TEST_F("require that commit is forwarded to index manager", Fixture) EXPECT_EQUAL(10u, f.mim.commitSerial); } -TEST_F("require that compactLidSpace is forwarded to index manager", Fixture) -{ - f.iw.compactLidSpace(4, 2); - EXPECT_EQUAL(2u, f.mim.wantedLidLimit); - EXPECT_EQUAL(4u, f.mim.compactSerial); -} - TEST_MAIN() { TEST_RUN_ALL(); |