diff options
author | Matt Broadstone <mbroadst@mongodb.com> | 2023-04-14 19:17:05 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-04-14 20:47:24 +0000 |
commit | 3e76161bc537343aa585b305c068b1910578c07f (patch) | |
tree | 8a97134aa9e2d51b28af7b85aa30b1e5ff319a3e /src/mongo/db/op_observer | |
parent | 71ff7d212f3af104dd6ab4faefac5a523102c56e (diff) | |
download | mongo-3e76161bc537343aa585b305c068b1910578c07f.tar.gz |
SERVER-75733 Return StringData in NSS::ns, DatabaseName::db
Diffstat (limited to 'src/mongo/db/op_observer')
-rw-r--r-- | src/mongo/db/op_observer/op_observer_impl_test.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/op_observer/op_observer_impl_test.cpp b/src/mongo/db/op_observer/op_observer_impl_test.cpp index f9d12984f34..920c4dc198a 100644 --- a/src/mongo/db/op_observer/op_observer_impl_test.cpp +++ b/src/mongo/db/op_observer/op_observer_impl_test.cpp @@ -641,7 +641,7 @@ TEST_F(OpObserverTest, OnDropCollectionInlcudesTenantId) { // Write to the oplog. { - AutoGetDb autoDb(opCtx.get(), nss.db(), MODE_X); + AutoGetDb autoDb(opCtx.get(), DatabaseName{nss.db()}, MODE_X); WriteUnitOfWork wunit(opCtx.get()); opObserver.onDropCollection( opCtx.get(), nss, uuid, 0U, OpObserver::CollectionDropType::kTwoPhase); @@ -705,7 +705,7 @@ TEST_F(OpObserverTest, OnRenameCollectionIncludesTenantIdFeatureFlagOff) { // Write to the oplog. { - AutoGetDb autoDb(opCtx.get(), sourceNss.db(), MODE_X); + AutoGetDb autoDb(opCtx.get(), DatabaseName{sourceNss.db()}, MODE_X); WriteUnitOfWork wunit(opCtx.get()); opObserver.onRenameCollection( opCtx.get(), sourceNss, targetNss, uuid, dropTargetUuid, 0U, stayTemp); @@ -741,7 +741,7 @@ TEST_F(OpObserverTest, OnRenameCollectionIncludesTenantIdFeatureFlagOn) { // Write to the oplog. { - AutoGetDb autoDb(opCtx.get(), sourceNss.db(), MODE_X); + AutoGetDb autoDb(opCtx.get(), DatabaseName{sourceNss.db()}, MODE_X); WriteUnitOfWork wunit(opCtx.get()); opObserver.onRenameCollection( opCtx.get(), sourceNss, targetNss, uuid, dropTargetUuid, 0U, stayTemp); @@ -866,7 +866,7 @@ TEST_F(OpObserverTest, ImportCollectionOplogEntryIncludesTenantId) { // Write to the oplog. { - AutoGetDb autoDb(opCtx.get(), nss.db(), MODE_X); + AutoGetDb autoDb(opCtx.get(), DatabaseName{nss.db()}, MODE_X); WriteUnitOfWork wunit(opCtx.get()); opObserver.onImportCollection(opCtx.get(), importUUID, |