diff options
author | Andy Schwerin <schwerin@mongodb.com> | 2015-05-29 13:50:42 -0400 |
---|---|---|
committer | Andy Schwerin <schwerin@mongodb.com> | 2015-06-05 14:21:56 -0400 |
commit | f4ca1b7eb3850719049d938b4b4562b6324ec284 (patch) | |
tree | ee6b74b1321a5f8ee622bad55e9d959442d9e6e5 /src/mongo/db/curop.cpp | |
parent | 51c2064d518140fbeae62f9d7ba29f1d69fb530f (diff) | |
download | mongo-f4ca1b7eb3850719049d938b4b4562b6324ec284.tar.gz |
SERVER-18277 Get references to the Top object out of CurOp.
Diffstat (limited to 'src/mongo/db/curop.cpp')
-rw-r--r-- | src/mongo/db/curop.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/mongo/db/curop.cpp b/src/mongo/db/curop.cpp index a23011d6ae9..2998492b145 100644 --- a/src/mongo/db/curop.cpp +++ b/src/mongo/db/curop.cpp @@ -39,8 +39,6 @@ #include "mongo/db/commands.h" #include "mongo/db/commands/server_status_metric.h" #include "mongo/db/json.h" -#include "mongo/db/service_context.h" -#include "mongo/db/stats/top.h" #include "mongo/util/fail_point_service.h" #include "mongo/util/log.h" @@ -225,11 +223,6 @@ namespace mongo { _dbprofile = std::max(dbProfileLevel, _dbprofile); } - void CurOp::recordGlobalTime(bool isWriteLocked, long long micros) const { - int lockType = isWriteLocked ? 1 : -1; - Top::get(getGlobalServiceContext()).record(_ns, _op, lockType, micros, _isCommand); - } - void CurOp::reportState(BSONObjBuilder* builder) { if (_start) { |