@@ -212,7 +212,7 @@ namespace mongo {
212212 string ns = parseNs (db, cmdObj);
213213
214214 intrusive_ptr<ExpressionContext> pCtx =
215- ExpressionContext::create (& InterruptStatusMongod::status, NamespaceString (ns));
215+ new ExpressionContext ( InterruptStatusMongod::status, NamespaceString (ns));
216216
217217 /* try to parse the command; if this fails, then we didn't run */
218218 intrusive_ptr<Pipeline> pPipeline = Pipeline::parseCommand (errmsg, cmdObj, pCtx);
@@ -227,7 +227,7 @@ namespace mongo {
227227#if _DEBUG
228228 // This is outside of the if block to keep the object alive until the pipeline is finished.
229229 BSONObj parsed;
230- if (!pPipeline->isExplain () && !pCtx->getInShard () ) {
230+ if (!pPipeline->isExplain () && !pCtx->inShard ) {
231231 // Make sure all operations round-trip through Pipeline::toBson()
232232 // correctly by reparsing every command on DEBUG builds. This is
233233 // important because sharded aggregations rely on this ability.
@@ -281,7 +281,7 @@ namespace mongo {
281281 intrusive_ptr<Pipeline>& pPipeline,
282282 intrusive_ptr<ExpressionContext>& pCtx) {
283283 /* setup as if we're in the router */
284- pCtx->setInRouter ( true ) ;
284+ pCtx->inRouter = true ;
285285
286286 /*
287287 Here, we'll split the pipeline in the same way we would for sharding,
@@ -315,8 +315,8 @@ namespace mongo {
315315 }
316316
317317 /* on the shard servers, create the local pipeline */
318- intrusive_ptr<ExpressionContext> pShardCtx (
319- ExpressionContext::create (& InterruptStatusMongod::status, NamespaceString (ns) ));
318+ intrusive_ptr<ExpressionContext> pShardCtx =
319+ new ExpressionContext ( InterruptStatusMongod::status, NamespaceString (ns));
320320 intrusive_ptr<Pipeline> pShardPipeline (
321321 Pipeline::parseCommand (errmsg, shardBson, pShardCtx));
322322 if (!pShardPipeline.get ()) {
0 commit comments