File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -203,14 +203,14 @@ namespace {
203203 CanonicalQuery* cq;
204204 // Passing an empty projection since it is faster to use documentFromBsonWithDeps.
205205 // This will need to change to support covering indexes (SERVER-12015).
206- uassertStatusOK (
206+ Status status =
207207 CanonicalQuery::canonicalize (pExpCtx->ns ,
208208 queryObj,
209209 sortObj,
210210 needQueryProjection ? projection : BSONObj (),
211- &cq)) ;
211+ &cq);
212212 Runner* rawRunner;
213- if (getRunner (cq, &rawRunner, runnerOptions).isOK ()) {
213+ if (status. isOK () && getRunner (cq, &rawRunner, runnerOptions).isOK ()) {
214214 // success: The Runner will handle sorting for us using an index.
215215 runner.reset (rawRunner);
216216 sortInRunner = true ;
You can’t perform that action at this time.
0 commit comments