diff options
author | Josef Ahmad <josef.ahmad@mongodb.com> | 2022-01-18 13:20:00 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-01-18 13:46:47 +0000 |
commit | fd275f66b712e0af181b53575efbe8a87f214a5e (patch) | |
tree | d41c09eab1a4f252a30221e32540f7b06fed08e0 /src/mongo/db/storage/record_store_test_recorditer.cpp | |
parent | a19f0b1c2575b8423c65f56e81d1e077274d0065 (diff) | |
download | mongo-fd275f66b712e0af181b53575efbe8a87f214a5e.tar.gz |
SERVER-61278 Guard capped clustered collections behind enableTestCommands
Diffstat (limited to 'src/mongo/db/storage/record_store_test_recorditer.cpp')
-rw-r--r-- | src/mongo/db/storage/record_store_test_recorditer.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mongo/db/storage/record_store_test_recorditer.cpp b/src/mongo/db/storage/record_store_test_recorditer.cpp index b7172c61395..c9710ee2222 100644 --- a/src/mongo/db/storage/record_store_test_recorditer.cpp +++ b/src/mongo/db/storage/record_store_test_recorditer.cpp @@ -51,7 +51,7 @@ using std::unique_ptr; // the iterator returns RecordId() and stays at EOF. TEST(RecordStoreTestHarness, IterateOverMultipleRecords) { const auto harnessHelper(newRecordStoreHarnessHelper()); - unique_ptr<RecordStore> rs(harnessHelper->newNonCappedRecordStore()); + unique_ptr<RecordStore> rs(harnessHelper->newRecordStore()); { ServiceContext::UniqueOperationContext opCtx(harnessHelper->newOperationContext()); @@ -101,7 +101,7 @@ TEST(RecordStoreTestHarness, IterateOverMultipleRecords) { // the iterator returns RecordId() and stays at EOF. TEST(RecordStoreTestHarness, IterateOverMultipleRecordsReversed) { const auto harnessHelper(newRecordStoreHarnessHelper()); - unique_ptr<RecordStore> rs(harnessHelper->newNonCappedRecordStore()); + unique_ptr<RecordStore> rs(harnessHelper->newRecordStore()); { ServiceContext::UniqueOperationContext opCtx(harnessHelper->newOperationContext()); @@ -151,7 +151,7 @@ TEST(RecordStoreTestHarness, IterateOverMultipleRecordsReversed) { // starting at an interior position. TEST(RecordStoreTestHarness, IterateStartFromMiddle) { const auto harnessHelper(newRecordStoreHarnessHelper()); - unique_ptr<RecordStore> rs(harnessHelper->newNonCappedRecordStore()); + unique_ptr<RecordStore> rs(harnessHelper->newRecordStore()); { ServiceContext::UniqueOperationContext opCtx(harnessHelper->newOperationContext()); @@ -202,7 +202,7 @@ TEST(RecordStoreTestHarness, IterateStartFromMiddle) { // starting at an interior position. TEST(RecordStoreTestHarness, IterateStartFromMiddleReversed) { const auto harnessHelper(newRecordStoreHarnessHelper()); - unique_ptr<RecordStore> rs(harnessHelper->newNonCappedRecordStore()); + unique_ptr<RecordStore> rs(harnessHelper->newRecordStore()); { ServiceContext::UniqueOperationContext opCtx(harnessHelper->newOperationContext()); @@ -254,7 +254,7 @@ TEST(RecordStoreTestHarness, IterateStartFromMiddleReversed) { // that the iterator remains EOF. TEST(RecordStoreTestHarness, RecordIteratorEOF) { const auto harnessHelper(newRecordStoreHarnessHelper()); - unique_ptr<RecordStore> rs(harnessHelper->newNonCappedRecordStore()); + unique_ptr<RecordStore> rs(harnessHelper->newRecordStore()); { ServiceContext::UniqueOperationContext opCtx(harnessHelper->newOperationContext()); @@ -325,7 +325,7 @@ TEST(RecordStoreTestHarness, RecordIteratorEOF) { // Test calling save and restore after each call to next TEST(RecordStoreTestHarness, RecordIteratorSaveRestore) { const auto harnessHelper(newRecordStoreHarnessHelper()); - unique_ptr<RecordStore> rs(harnessHelper->newNonCappedRecordStore()); + unique_ptr<RecordStore> rs(harnessHelper->newRecordStore()); { ServiceContext::UniqueOperationContext opCtx(harnessHelper->newOperationContext()); @@ -387,7 +387,7 @@ TEST(RecordStoreTestHarness, RecordIteratorSaveRestore) { // that next() returns the second record. TEST(RecordStoreTestHarness, SeekAfterEofAndContinue) { const auto harnessHelper(newRecordStoreHarnessHelper()); - unique_ptr<RecordStore> rs(harnessHelper->newNonCappedRecordStore()); + unique_ptr<RecordStore> rs(harnessHelper->newRecordStore()); ServiceContext::UniqueOperationContext opCtx(harnessHelper->newOperationContext()); @@ -441,7 +441,7 @@ TEST(RecordStoreTestHarness, SeekAfterEofAndContinue) { // seekExact() must return boost::none if the RecordId does not exist. TEST(RecordStoreTestHarness, SeekExactForMissingRecordReturnsNone) { const auto harnessHelper{newRecordStoreHarnessHelper()}; - auto recordStore = harnessHelper->newNonCappedRecordStore(); + auto recordStore = harnessHelper->newRecordStore(); ServiceContext::UniqueOperationContext opCtx{harnessHelper->newOperationContext()}; // Insert three records and remember their record ids. |