diff options
author | Gregory Wlodarek <gregory.wlodarek@mongodb.com> | 2018-11-30 15:44:58 -0500 |
---|---|---|
committer | Gregory Wlodarek <gregory.wlodarek@mongodb.com> | 2018-12-03 17:02:24 -0500 |
commit | f439d76860cf8307c5d6ba3fe421b8c88a7c3d8c (patch) | |
tree | a5f31e7082f791f622199bc6781a876ee86f795e /src/mongo/db/storage/sorted_data_interface_test_dupkeycheck.cpp | |
parent | 2c124b76e1d51a9427efffd804e3ca1cff6a1a11 (diff) | |
download | mongo-f439d76860cf8307c5d6ba3fe421b8c88a7c3d8c.tar.gz |
SERVER-38333 Support partial indexes in BiggieSE
Diffstat (limited to 'src/mongo/db/storage/sorted_data_interface_test_dupkeycheck.cpp')
-rw-r--r-- | src/mongo/db/storage/sorted_data_interface_test_dupkeycheck.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/mongo/db/storage/sorted_data_interface_test_dupkeycheck.cpp b/src/mongo/db/storage/sorted_data_interface_test_dupkeycheck.cpp index e384f3d8a7c..95e0cf6b149 100644 --- a/src/mongo/db/storage/sorted_data_interface_test_dupkeycheck.cpp +++ b/src/mongo/db/storage/sorted_data_interface_test_dupkeycheck.cpp @@ -45,7 +45,8 @@ namespace { // pair that was inserted, it should still return an OK status. TEST(SortedDataInterface, DupKeyCheckAfterInsert) { const auto harnessHelper(newSortedDataInterfaceHarnessHelper()); - const std::unique_ptr<SortedDataInterface> sorted(harnessHelper->newSortedDataInterface(true)); + const std::unique_ptr<SortedDataInterface> sorted( + harnessHelper->newSortedDataInterface(/*unique=*/true, /*partial=*/false)); { const ServiceContext::UniqueOperationContext opCtx(harnessHelper->newOperationContext()); @@ -81,7 +82,8 @@ TEST(SortedDataInterface, DupKeyCheckAfterInsert) { // not exist in the index. TEST(SortedDataInterface, DupKeyCheckEmpty) { const auto harnessHelper(newSortedDataInterfaceHarnessHelper()); - const std::unique_ptr<SortedDataInterface> sorted(harnessHelper->newSortedDataInterface(true)); + const std::unique_ptr<SortedDataInterface> sorted( + harnessHelper->newSortedDataInterface(/*unique=*/true, /*partial=*/false)); { const ServiceContext::UniqueOperationContext opCtx(harnessHelper->newOperationContext()); @@ -102,7 +104,8 @@ TEST(SortedDataInterface, DupKeyCheckEmpty) { // when the insert key is located at a RecordId that comes after the one specified. TEST(SortedDataInterface, DupKeyCheckWhenDiskLocBefore) { const auto harnessHelper(newSortedDataInterfaceHarnessHelper()); - const std::unique_ptr<SortedDataInterface> sorted(harnessHelper->newSortedDataInterface(true)); + const std::unique_ptr<SortedDataInterface> sorted( + harnessHelper->newSortedDataInterface(/*unique=*/true, /*partial=*/false)); { const ServiceContext::UniqueOperationContext opCtx(harnessHelper->newOperationContext()); @@ -137,7 +140,8 @@ TEST(SortedDataInterface, DupKeyCheckWhenDiskLocBefore) { // when the insert key is located at a RecordId that comes before the one specified. TEST(SortedDataInterface, DupKeyCheckWhenDiskLocAfter) { const auto harnessHelper(newSortedDataInterfaceHarnessHelper()); - const std::unique_ptr<SortedDataInterface> sorted(harnessHelper->newSortedDataInterface(true)); + const std::unique_ptr<SortedDataInterface> sorted( + harnessHelper->newSortedDataInterface(/*unique=*/true, /*partial=*/false)); { const ServiceContext::UniqueOperationContext opCtx(harnessHelper->newOperationContext()); |