summaryrefslogtreecommitdiff
path: root/src/mongo/s/s_only.cpp
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2014-04-09 16:25:42 -0400
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2014-04-15 13:26:14 -0400
commit1249034444dc146eb6177fbe4845e593b807f84d (patch)
tree68eaa1b22e33c89e73f7fac06ce5644f5990825e /src/mongo/s/s_only.cpp
parentb3aaf2e5809e272367b0f60f66938d8bf712702c (diff)
downloadmongo-1249034444dc146eb6177fbe4845e593b807f84d.tar.gz
SERVER-13498 Get rid of LockStatus
This change removes all usages of LockStatus and pushes the lock acquisitions to be inside the respective commands. This is a refactoring on the way to per-document locking.
Diffstat (limited to 'src/mongo/s/s_only.cpp')
-rw-r--r--src/mongo/s/s_only.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/s/s_only.cpp b/src/mongo/s/s_only.cpp
index f8518b93fd1..9d4ee7acebd 100644
--- a/src/mongo/s/s_only.cpp
+++ b/src/mongo/s/s_only.cpp
@@ -117,7 +117,7 @@ namespace mongo {
help << "help for: " << c->name << " ";
c->help( help );
result.append( "help" , help.str() );
- result.append( "lockType" , c->locktype() );
+ result.append("lockType", c->isWriteCommandForConfigServer() ? 1 : 0);
appendCommandStatus(result, true, "");
return;
}