summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/pipeline_command.cpp
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2012-07-03 13:37:51 -0700
committerAaron <aaron@10gen.com>2012-07-03 14:45:11 -0700
commitbdc8d8617f389bbb6825046c0499396c2bc69a3a (patch)
treed1457cf10ee966afa0708ebc828b5ccabed12237 /src/mongo/db/commands/pipeline_command.cpp
parent6c43500cd82ca14ef278b20eacc7fa032b9dc034 (diff)
downloadmongo-bdc8d8617f389bbb6825046c0499396c2bc69a3a.tar.gz
SERVER-6123 Remove unused lockGlobally() implementation in PipelineCommand.
Diffstat (limited to 'src/mongo/db/commands/pipeline_command.cpp')
-rwxr-xr-xsrc/mongo/db/commands/pipeline_command.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/mongo/db/commands/pipeline_command.cpp b/src/mongo/db/commands/pipeline_command.cpp
index e79bf75fe68..fdfcb952c9f 100755
--- a/src/mongo/db/commands/pipeline_command.cpp
+++ b/src/mongo/db/commands/pipeline_command.cpp
@@ -155,9 +155,6 @@ namespace mongo {
the direct client interface under the execution phase.
*/
{
- scoped_ptr<Lock::GlobalRead> lk;
- if(lockGlobally())
- lk.reset(new Lock::GlobalRead());
Client::ReadContext ctx(ns, dbpath, requiresAuth()); // read lock
pSource = PipelineD::prepareCursorSource(pPipeline, db, pCtx);
@@ -182,9 +179,6 @@ namespace mongo {
intrusive_ptr<Pipeline> &pPipeline,
intrusive_ptr<ExpressionContext> &pCtx) {
- scoped_ptr<Lock::GlobalRead> lk;
- if(lockGlobally())
- lk.reset(new Lock::GlobalRead());
Client::ReadContext ctx(ns, dbpath, requiresAuth()); // read lock
intrusive_ptr<DocumentSourceCursor> pSource(