diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2014-07-09 04:15:56 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2014-07-18 15:16:15 -0400 |
commit | 9066a06214f115c182c2b83ed40e939e05b9c1f8 (patch) | |
tree | 4239137f6521f1d1d77ecc3c3be89b6e6779f7f1 /src/mongo/db/commands/index_filter_commands.h | |
parent | 3c3d656668e26645492ee3dafb241631352426d4 (diff) | |
download | mongo-9066a06214f115c182c2b83ed40e939e05b9c1f8.tar.gz |
SERVER-13961 Pass OperationContext into WhereCallbackReal
There are no functional changes in this commit, just preparation for the
subsequent one, which will add operation context to the JS execution
scope.
Diffstat (limited to 'src/mongo/db/commands/index_filter_commands.h')
-rw-r--r-- | src/mongo/db/commands/index_filter_commands.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/mongo/db/commands/index_filter_commands.h b/src/mongo/db/commands/index_filter_commands.h index f6ba8fa9efb..2f106b16f36 100644 --- a/src/mongo/db/commands/index_filter_commands.h +++ b/src/mongo/db/commands/index_filter_commands.h @@ -138,7 +138,10 @@ namespace mongo { * Namespace argument ns is ignored if we are clearing the entire cache. * Removes corresponding entries from plan cache. */ - static Status clear(QuerySettings* querySettings, PlanCache* planCache, const std::string& ns, + static Status clear(OperationContext* txn, + QuerySettings* querySettings, + PlanCache* planCache, + const std::string& ns, const BSONObj& cmdObj); }; @@ -167,7 +170,10 @@ namespace mongo { * Sets index filter for a query shape. * Removes entry for query shape from plan cache. */ - static Status set(QuerySettings* querySettings, PlanCache* planCache, const std::string& ns, + static Status set(OperationContext* txn, + QuerySettings* querySettings, + PlanCache* planCache, + const std::string& ns, const BSONObj& cmdObj); }; |