summaryrefslogtreecommitdiff
path: root/src/mongo/db/views/view_catalog.h
diff options
context:
space:
mode:
authorlukebhan <luke.bhan@vanderbilt.edu>2021-06-16 19:31:09 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-06-23 16:49:50 +0000
commitc4849034202d3e75960b99d9383cc43321ad866e (patch)
treeb4a574b7af0748651fc6f45c11b3fe8742a536c0 /src/mongo/db/views/view_catalog.h
parent32d4d90cb12b46a57101b5de4e9ba08b5ab50c9e (diff)
downloadmongo-c4849034202d3e75960b99d9383cc43321ad866e.tar.gz
SERVER-57119 Changed view_catalog interface to only use NamespaceString
removed places where ns.ns() is called changed stringdata to namespace string for lookup function update view catalog update view catalog test fixed test fixed create coll
Diffstat (limited to 'src/mongo/db/views/view_catalog.h')
-rw-r--r--src/mongo/db/views/view_catalog.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mongo/db/views/view_catalog.h b/src/mongo/db/views/view_catalog.h
index dc8a20c1baa..0903fb46cb3 100644
--- a/src/mongo/db/views/view_catalog.h
+++ b/src/mongo/db/views/view_catalog.h
@@ -122,14 +122,15 @@ public:
* Look up the 'nss' in the view catalog, returning a shared pointer to a View definition, or
* nullptr if it doesn't exist.
*/
- std::shared_ptr<const ViewDefinition> lookup(OperationContext* opCtx, StringData nss) const;
+ std::shared_ptr<const ViewDefinition> lookup(OperationContext* opCtx,
+ const NamespaceString& nss) const;
/**
* Same functionality as above, except this function skips validating durable views in the view
* catalog.
*/
std::shared_ptr<const ViewDefinition> lookupWithoutValidatingDurableViews(
- OperationContext* opCtx, StringData nss) const;
+ OperationContext* opCtx, const NamespaceString& nss) const;
/**
* Resolve the views on 'nss', transforming the pipeline appropriately. This function returns a
@@ -206,10 +207,10 @@ private:
const std::vector<NamespaceString>& refs) const;
std::shared_ptr<const ViewDefinition> _lookup(OperationContext* opCtx,
- StringData ns,
+ const NamespaceString& ns,
ViewCatalogLookupBehavior lookupBehavior) const;
std::shared_ptr<ViewDefinition> _lookup(OperationContext* opCtx,
- StringData ns,
+ const NamespaceString& ns,
ViewCatalogLookupBehavior lookupBehavior);
Status _reload(OperationContext* opCtx,