summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/sorted_data_interface_test_cursor.cpp
diff options
context:
space:
mode:
authorLouis Williams <louis.williams@mongodb.com>2019-08-20 15:20:55 +0000
committerevergreen <evergreen@mongodb.com>2019-08-20 15:20:55 +0000
commit1463c58b700738a17ff8501c8b5bc6b6fea8f3ea (patch)
treea248a1b1289dc1c18c32f9765fb612694da5fe24 /src/mongo/db/storage/sorted_data_interface_test_cursor.cpp
parentcdde2f26f6850149ff34c5267228297c6ed46c31 (diff)
downloadmongo-1463c58b700738a17ff8501c8b5bc6b6fea8f3ea.tar.gz
SERVER-42247 Callers of SortedDataInterface insert and unindex should pass KeyStrings
Diffstat (limited to 'src/mongo/db/storage/sorted_data_interface_test_cursor.cpp')
-rw-r--r--src/mongo/db/storage/sorted_data_interface_test_cursor.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mongo/db/storage/sorted_data_interface_test_cursor.cpp b/src/mongo/db/storage/sorted_data_interface_test_cursor.cpp
index 289399916a5..9d3ae65350e 100644
--- a/src/mongo/db/storage/sorted_data_interface_test_cursor.cpp
+++ b/src/mongo/db/storage/sorted_data_interface_test_cursor.cpp
@@ -104,7 +104,8 @@ TEST(SortedDataInterface, ExhaustCursor) {
WriteUnitOfWork uow(opCtx.get());
BSONObj key = BSON("" << i);
RecordId loc(42, i * 2);
- ASSERT_OK(sorted->insert(opCtx.get(), key, loc, true));
+ ASSERT_OK(
+ sorted->insert(opCtx.get(), makeKeyString(sorted.get(), key, loc), loc, true));
uow.commit();
}
}
@@ -147,7 +148,8 @@ TEST(SortedDataInterface, ExhaustCursorReversed) {
WriteUnitOfWork uow(opCtx.get());
BSONObj key = BSON("" << i);
RecordId loc(42, i * 2);
- ASSERT_OK(sorted->insert(opCtx.get(), key, loc, true));
+ ASSERT_OK(
+ sorted->insert(opCtx.get(), makeKeyString(sorted.get(), key, loc), loc, true));
uow.commit();
}
}
@@ -185,7 +187,7 @@ void testBoundaries(bool unique, bool forward, bool inclusive) {
WriteUnitOfWork uow(opCtx.get());
BSONObj key = BSON("" << i);
RecordId loc(42 + i * 2);
- ASSERT_OK(sorted->insert(opCtx.get(), key, loc, true));
+ ASSERT_OK(sorted->insert(opCtx.get(), makeKeyString(sorted.get(), key, loc), loc, true));
uow.commit();
}