From 5a9dd0cbec1f4293e966321885cccb549c77e59c Mon Sep 17 00:00:00 2001 From: Dianna Hohensee Date: Tue, 13 Oct 2020 17:52:55 -0400 Subject: SERVER-50677 Make a lock-free read version of AutoGetCollectionForRead and open a storage snapshot corresponding to the acquired Collection instance --- src/mongo/db/catalog_raii.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/mongo/db/catalog_raii.cpp') diff --git a/src/mongo/db/catalog_raii.cpp b/src/mongo/db/catalog_raii.cpp index f3b9e5aa039..e8bb4e48e74 100644 --- a/src/mongo/db/catalog_raii.cpp +++ b/src/mongo/db/catalog_raii.cpp @@ -95,8 +95,7 @@ AutoGetCollection::AutoGetCollection(OperationContext* opCtx, Database* const db = _autoDb.getDb(); invariant(!nsOrUUID.uuid() || db, str::stream() << "Database for " << _resolvedNss.ns() - << " disappeared after successufully resolving " - << nsOrUUID.toString()); + << " disappeared after successfully resolving " << nsOrUUID.toString()); // In most cases we expect modifications for system.views to upgrade MODE_IX to MODE_X before // taking the lock. One exception is a query by UUID of system.views in a transaction. Usual -- cgit v1.2.1