diff options
author | Louis Williams <louis.williams@mongodb.com> | 2019-08-20 15:20:55 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-08-20 15:20:55 +0000 |
commit | 1463c58b700738a17ff8501c8b5bc6b6fea8f3ea (patch) | |
tree | a248a1b1289dc1c18c32f9765fb612694da5fe24 /src/mongo/db/storage/kv/kv_engine_test_harness.cpp | |
parent | cdde2f26f6850149ff34c5267228297c6ed46c31 (diff) | |
download | mongo-1463c58b700738a17ff8501c8b5bc6b6fea8f3ea.tar.gz |
SERVER-42247 Callers of SortedDataInterface insert and unindex should pass KeyStrings
Diffstat (limited to 'src/mongo/db/storage/kv/kv_engine_test_harness.cpp')
-rw-r--r-- | src/mongo/db/storage/kv/kv_engine_test_harness.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mongo/db/storage/kv/kv_engine_test_harness.cpp b/src/mongo/db/storage/kv/kv_engine_test_harness.cpp index 034d7b673f5..14faebc450a 100644 --- a/src/mongo/db/storage/kv/kv_engine_test_harness.cpp +++ b/src/mongo/db/storage/kv/kv_engine_test_harness.cpp @@ -180,7 +180,12 @@ TEST(KVEngineTestHarness, SimpleSorted1) { { MyOperationContext opCtx(engine); WriteUnitOfWork uow(&opCtx); - ASSERT_OK(sorted->insert(&opCtx, BSON("" << 5), RecordId(6, 4), true)); + const RecordId recordId(6, 4); + const KeyString::Value keyString = + KeyString::HeapBuilder( + sorted->getKeyStringVersion(), BSON("" << 5), sorted->getOrdering(), recordId) + .release(); + ASSERT_OK(sorted->insert(&opCtx, keyString, recordId, true)); uow.commit(); } |