diff options
author | Harald Musum <musum@verizonmedia.com> | 2021-05-13 06:33:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-13 06:33:42 +0200 |
commit | 4602f58db14c6b73a0ed0c73e0d1fa7e64f0865d (patch) | |
tree | cea4880d18ab5a2089b4339349a78b54405cd385 /searchcore/src/tests/proton/documentdb/lid_space_compaction | |
parent | d06fbe9946bdc7b6e43806ab8379e0ba5e21f79f (diff) |
Revert "Revert "Revert "Now that everything is controlled bucketwise by the bucket db we shou…"""
Diffstat (limited to 'searchcore/src/tests/proton/documentdb/lid_space_compaction')
-rw-r--r-- | searchcore/src/tests/proton/documentdb/lid_space_compaction/lid_space_handler_test.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/searchcore/src/tests/proton/documentdb/lid_space_compaction/lid_space_handler_test.cpp b/searchcore/src/tests/proton/documentdb/lid_space_compaction/lid_space_handler_test.cpp index 369d4f85c73..2ca1101ac3a 100644 --- a/searchcore/src/tests/proton/documentdb/lid_space_compaction/lid_space_handler_test.cpp +++ b/searchcore/src/tests/proton/documentdb/lid_space_compaction/lid_space_handler_test.cpp @@ -38,6 +38,13 @@ TEST_F(HandlerTest, createMoveOperation_works_as_expected) const BucketId bucketId(100); const Timestamp timestamp(200); DocumentMetaData document(moveFromLid, timestamp, bucketId, GlobalId()); + { + EXPECT_FALSE(_subDb.maintenance_sub_db.lidNeedsCommit(moveFromLid)); + IPendingLidTracker::Token token = _subDb._pendingLidsForCommit.produce(moveFromLid); + EXPECT_TRUE(_subDb.maintenance_sub_db.lidNeedsCommit(moveFromLid)); + MoveOperation::UP op = _handler.createMoveOperation(document, moveToLid); + ASSERT_FALSE(op); + } EXPECT_FALSE(_subDb.maintenance_sub_db.lidNeedsCommit(moveFromLid)); MoveOperation::UP op = _handler.createMoveOperation(document, moveToLid); ASSERT_TRUE(op); |