summaryrefslogtreecommitdiff
path: root/src/mongo
diff options
context:
space:
mode:
authorJason Chan <jason.chan@mongodb.com>2021-03-01 19:36:05 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-03-01 22:22:47 +0000
commit4fbc6225a2baaaea78c73ded66048a198677e335 (patch)
tree885a8e295fbe3ce7a65c574485c85550a411f0ec /src/mongo
parent1956a27c09414df5b49f083161a1ad33f6503d54 (diff)
downloadmongo-4fbc6225a2baaaea78c73ded66048a198677e335.tar.gz
SERVER-54862 Avoid manually assigning timestamps when inserting documents into collection in TenantMigration unit test
Diffstat (limited to 'src/mongo')
-rw-r--r--src/mongo/db/repl/tenant_migration_recipient_service_test.cpp18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/mongo/db/repl/tenant_migration_recipient_service_test.cpp b/src/mongo/db/repl/tenant_migration_recipient_service_test.cpp
index 8e9eb3da16c..e10c08ba493 100644
--- a/src/mongo/db/repl/tenant_migration_recipient_service_test.cpp
+++ b/src/mongo/db/repl/tenant_migration_recipient_service_test.cpp
@@ -3318,11 +3318,10 @@ TEST_F(TenantMigrationRecipientServiceTest, IncrementNumRestartsDueToRecipientFa
auto storage = StorageInterface::get(opCtx->getServiceContext());
ASSERT_OK(storage->createCollection(
opCtx.get(), NamespaceString::kTenantMigrationRecipientsNamespace, collectionOptions));
- ASSERT_OK(
- storage->insertDocument(opCtx.get(),
- NamespaceString::kTenantMigrationRecipientsNamespace,
- {initialStateDocument.toBSON(), topOfOplogOpTime.getTimestamp()},
- topOfOplogOpTime.getTerm()));
+ ASSERT_OK(storage->insertDocument(opCtx.get(),
+ NamespaceString::kTenantMigrationRecipientsNamespace,
+ {initialStateDocument.toBSON()},
+ 0));
// Create and start the instance.
auto instance = TenantMigrationRecipientService::Instance::getOrCreate(
@@ -3366,11 +3365,10 @@ TEST_F(TenantMigrationRecipientServiceTest,
auto storage = StorageInterface::get(opCtx->getServiceContext());
ASSERT_OK(storage->createCollection(
opCtx.get(), NamespaceString::kTenantMigrationRecipientsNamespace, collectionOptions));
- ASSERT_OK(
- storage->insertDocument(opCtx.get(),
- NamespaceString::kTenantMigrationRecipientsNamespace,
- {initialStateDocument.toBSON(), topOfOplogOpTime.getTimestamp()},
- topOfOplogOpTime.getTerm()));
+ ASSERT_OK(storage->insertDocument(opCtx.get(),
+ NamespaceString::kTenantMigrationRecipientsNamespace,
+ {initialStateDocument.toBSON()},
+ 0));
// Create and start the instance.
auto instance = TenantMigrationRecipientService::Instance::getOrCreate(