diff options
Diffstat (limited to 'src/mongo/db/s/rename_collection_coordinator.cpp')
-rw-r--r-- | src/mongo/db/s/rename_collection_coordinator.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mongo/db/s/rename_collection_coordinator.cpp b/src/mongo/db/s/rename_collection_coordinator.cpp index e1dc8fea867..9f0c978d321 100644 --- a/src/mongo/db/s/rename_collection_coordinator.cpp +++ b/src/mongo/db/s/rename_collection_coordinator.cpp @@ -147,8 +147,11 @@ ExecutorFuture<void> RenameCollectionCoordinator::_runImpl( (!_doc.getExpectedSourceUUID() && !_doc.getExpectedTargetUUID())); { - AutoGetCollection coll{ - opCtx, fromNss, MODE_IS, AutoGetCollectionViewMode::kViewsPermitted}; + AutoGetCollection coll{opCtx, + fromNss, + MODE_IS, + AutoGetCollection::Options{}.viewMode( + auto_get_collection::ViewMode::kViewsPermitted)}; checkCollectionUUIDMismatch( opCtx, fromNss, *coll, _doc.getExpectedSourceUUID()); |