diff options
author | Mathias Stearn <mathias@10gen.com> | 2017-06-22 15:25:37 -0400 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2017-07-13 16:53:12 -0400 |
commit | 1f21d889f89cf1338ff198264d63b029314eef7a (patch) | |
tree | 741021d15b7b2149b28c8eb84369350d8c9a34d8 /src/mongo/db/commands/lock_info.cpp | |
parent | a6cc94d141f13feff33178a769c81282c7bc0170 (diff) | |
download | mongo-1f21d889f89cf1338ff198264d63b029314eef7a.tar.gz |
SERVER-29731 convert all direct subclasses of Command to BasicCommand
Diffstat (limited to 'src/mongo/db/commands/lock_info.cpp')
-rw-r--r-- | src/mongo/db/commands/lock_info.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/commands/lock_info.cpp b/src/mongo/db/commands/lock_info.cpp index 5a3c2dd5dab..4becb45fcc0 100644 --- a/src/mongo/db/commands/lock_info.cpp +++ b/src/mongo/db/commands/lock_info.cpp @@ -47,7 +47,7 @@ using std::stringstream; /** * Admin command to display global lock information */ -class CmdLockInfo : public Command { +class CmdLockInfo : public BasicCommand { public: virtual bool slaveOk() const { return true; @@ -77,7 +77,7 @@ public: return isAuthorized ? Status::OK() : Status(ErrorCodes::Unauthorized, "Unauthorized"); } - CmdLockInfo() : Command("lockInfo") {} + CmdLockInfo() : BasicCommand("lockInfo") {} bool run(OperationContext* opCtx, const string& dbname, |