Details
Description
The changes from 4970898 as part of SERVER-29839 made it so the QueryRequest updates its _nss member by resolving the UUID to a NamespaceString using the UUIDCatalog. It additionally introduced an invariant() that the UUID would be found in the UUIDCatalog; however, given that the UUID is user-supplied data we should probably be using uassert() here instead.
void QueryRequest::refreshNSS(OperationContext* opCtx) { |
UUIDCatalog& catalog = UUIDCatalog::get(opCtx);
|
if (_uuid) { |
invariant(catalog.lookupCollectionByUUID(_uuid.get()));
|
_nss = catalog.lookupNSSByUUID(_uuid.get());
|
}
|
invariant(!_nss.isEmpty());
|
}
|