summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mongo/db/exec/sbe/stages/collection_helpers.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/exec/sbe/stages/collection_helpers.cpp b/src/mongo/db/exec/sbe/stages/collection_helpers.cpp
index 6eec51407dd..66ddb039f64 100644
--- a/src/mongo/db/exec/sbe/stages/collection_helpers.cpp
+++ b/src/mongo/db/exec/sbe/stages/collection_helpers.cpp
@@ -44,8 +44,9 @@ std::tuple<CollectionPtr, NamespaceString, uint64_t> acquireCollection(Operation
CollectionPtr collPtr = CollectionCatalog::get(opCtx)->lookupCollectionByUUID(opCtx, collUuid);
tassert(5071000, str::stream() << "Collection uuid " << collUuid << " does not exist", collPtr);
+ auto nss = collPtr->ns();
return std::make_tuple(
- std::move(collPtr), collPtr->ns(), CollectionCatalog::get(opCtx)->getEpoch());
+ std::move(collPtr), std::move(nss), CollectionCatalog::get(opCtx)->getEpoch());
}
CollectionPtr restoreCollection(OperationContext* opCtx,