summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mongo/db/views/view_catalog.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/views/view_catalog.cpp b/src/mongo/db/views/view_catalog.cpp
index 85a5986fd13..e33a250d4d6 100644
--- a/src/mongo/db/views/view_catalog.cpp
+++ b/src/mongo/db/views/view_catalog.cpp
@@ -846,6 +846,12 @@ StatusWith<ResolvedView> ViewCatalog::resolveView(
resolvedNss = &view->viewOn();
+ if (storageGlobalParams.restore) {
+ // During a selective restore procedure, skip checking options as the collection may no
+ // longer exist.
+ continue;
+ }
+
if (view->timeseries()) {
// Use the lock-free collection lookup, to ensure compatibility with lock-free read
// operations.