summaryrefslogtreecommitdiff
path: root/src/mongo/db/stats/top.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/db/stats/top.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/db/stats/top.cpp')
-rw-r--r--src/mongo/db/stats/top.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/stats/top.cpp b/src/mongo/db/stats/top.cpp
index 644a8871839..0f19a8fcdbe 100644
--- a/src/mongo/db/stats/top.cpp
+++ b/src/mongo/db/stats/top.cpp
@@ -179,7 +179,7 @@ namespace mongo {
virtual bool slaveOk() const { return true; }
virtual bool adminOnly() const { return true; }
- virtual LockType locktype() const { return NONE; }
+ virtual bool isWriteCommandForConfigServer() const { return false; }
virtual void help( stringstream& help ) const { help << "usage by collection, in micros "; }
virtual void addRequiredPrivileges(const std::string& dbname,
const BSONObj& cmdObj,