summaryrefslogtreecommitdiff
path: root/src/mongo/db/views
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/views')
-rw-r--r--src/mongo/db/views/durable_view_catalog.cpp12
-rw-r--r--src/mongo/db/views/view_catalog.cpp11
2 files changed, 13 insertions, 10 deletions
diff --git a/src/mongo/db/views/durable_view_catalog.cpp b/src/mongo/db/views/durable_view_catalog.cpp
index 56cc506dd42..fec912e569e 100644
--- a/src/mongo/db/views/durable_view_catalog.cpp
+++ b/src/mongo/db/views/durable_view_catalog.cpp
@@ -197,9 +197,10 @@ void DurableViewCatalogImpl::upsert(OperationContext* opCtx,
if (!id.isValid() || !systemViews->findDoc(opCtx, id, &oldView)) {
LOGV2_DEBUG(22544,
2,
- "insert view {view} into {db_getSystemViewsName}",
+ "Insert view {view} into {viewCatalog}",
+ "Insert view to system views catalog",
"view"_attr = view,
- "db_getSystemViewsName"_attr = _db->getSystemViewsName());
+ "viewCatalog"_attr = _db->getSystemViewsName());
uassertStatusOK(
systemViews->insertDocument(opCtx, InsertStatement(view), &CurOp::get(opCtx)->debug()));
} else {
@@ -231,9 +232,10 @@ void DurableViewCatalogImpl::remove(OperationContext* opCtx, const NamespaceStri
LOGV2_DEBUG(22545,
2,
- "remove view {name} from {db_getSystemViewsName}",
- "name"_attr = name,
- "db_getSystemViewsName"_attr = _db->getSystemViewsName());
+ "Remove view {view} from {viewCatalog}",
+ "Remove view from system views catalog",
+ "view"_attr = name,
+ "viewCatalog"_attr = _db->getSystemViewsName());
systemViews->deleteDocument(opCtx, kUninitializedStmtId, id, &CurOp::get(opCtx)->debug());
}
} // namespace mongo
diff --git a/src/mongo/db/views/view_catalog.cpp b/src/mongo/db/views/view_catalog.cpp
index ac084322f6e..3d3da8088b9 100644
--- a/src/mongo/db/views/view_catalog.cpp
+++ b/src/mongo/db/views/view_catalog.cpp
@@ -96,8 +96,9 @@ Status ViewCatalog::_reload(WithLock,
ViewCatalogLookupBehavior lookupBehavior) {
LOGV2_DEBUG(22546,
1,
- "reloading view catalog for database {durable_getName}",
- "durable_getName"_attr = _durable->getName());
+ "Reloading view catalog for database {db}",
+ "Reloading view catalog for database",
+ "db"_attr = _durable->getName());
_viewMap.clear();
_valid = false;
@@ -141,9 +142,9 @@ Status ViewCatalog::_reload(WithLock,
} catch (const DBException& ex) {
auto status = ex.toStatus();
LOGV2(22547,
- "could not load view catalog for database {dbName}: {error}",
- "could not load view catalog for database",
- "dbName"_attr = _durable->getName(),
+ "Could not load view catalog for database {db}: {error}",
+ "Could not load view catalog for database",
+ "db"_attr = _durable->getName(),
"error"_attr = status);
return status;
}