summaryrefslogtreecommitdiff
path: root/src/mongo
diff options
context:
space:
mode:
authorGregory Wlodarek <gregory.wlodarek@mongodb.com>2022-02-18 02:48:46 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-02-18 19:52:54 +0000
commitf0e56370a9e1a02add0259187ca8f2acb4178d26 (patch)
tree8fee6bfe3e82a9d9ecf28e361e829d5e4204833a /src/mongo
parent452458ea90e789bca64687305d175c275779ad19 (diff)
downloadmongo-f0e56370a9e1a02add0259187ca8f2acb4178d26.tar.gz
SERVER-63230 Skip time-series buckets collection lookup for a view during restore
Diffstat (limited to 'src/mongo')
-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.