summaryrefslogtreecommitdiff
path: root/src/mongo/db/views/view_catalog_test.cpp
diff options
context:
space:
mode:
authorFaustoleyva54 <fausto.leyva@mongodb.com>2021-12-31 17:44:36 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-01-05 21:46:33 +0000
commit23376f506bf0ee9cb64cdf212a618224a1184859 (patch)
tree97c4ac417dd2b10672771b45cb8cc4a502812d19 /src/mongo/db/views/view_catalog_test.cpp
parentf8ce50765f7017ed6cbb1cffd57dfa0d58e5c705 (diff)
downloadmongo-23376f506bf0ee9cb64cdf212a618224a1184859.tar.gz
SERVER-62050 Remove _opCtx from AutoGetDb and instead pass in an opCtx to AutoGetDb::ensureDbExists()
Diffstat (limited to 'src/mongo/db/views/view_catalog_test.cpp')
-rw-r--r--src/mongo/db/views/view_catalog_test.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/views/view_catalog_test.cpp b/src/mongo/db/views/view_catalog_test.cpp
index f468f5feac9..1836f3feb21 100644
--- a/src/mongo/db/views/view_catalog_test.cpp
+++ b/src/mongo/db/views/view_catalog_test.cpp
@@ -83,12 +83,12 @@ public:
WriteUnitOfWork wuow(operationContext());
AutoGetDb autoDb(operationContext(), "db", MODE_X);
- _db = autoDb.ensureDbExists();
+ _db = autoDb.ensureDbExists(operationContext());
invariant(_db);
// Create any additional databases used throughout the test.
- ASSERT(AutoGetDb(operationContext(), "db1", MODE_X).ensureDbExists());
- ASSERT(AutoGetDb(operationContext(), "db2", MODE_X).ensureDbExists());
+ ASSERT(AutoGetDb(operationContext(), "db1", MODE_X).ensureDbExists(operationContext()));
+ ASSERT(AutoGetDb(operationContext(), "db2", MODE_X).ensureDbExists(operationContext()));
auto durableViewCatalogUnique = std::make_unique<DurableViewCatalogImpl>(_db);
durableViewCatalog = durableViewCatalogUnique.get();