diff options
Diffstat (limited to 'src/mongo/db/stats/top.h')
-rw-r--r-- | src/mongo/db/stats/top.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/mongo/db/stats/top.h b/src/mongo/db/stats/top.h index 1f08e4784a5..463482199fe 100644 --- a/src/mongo/db/stats/top.h +++ b/src/mongo/db/stats/top.h @@ -84,13 +84,19 @@ public: OperationLatencyHistogram opLatencyHistogram; }; + enum class LockType { + ReadLocked, + WriteLocked, + NotLocked, + }; + typedef StringMap<CollectionData> UsageMap; public: void record(OperationContext* opCtx, StringData ns, LogicalOp logicalOp, - int lockType, + LockType lockType, long long micros, bool command, Command::ReadWriteType readWriteType); @@ -126,7 +132,7 @@ private: void _record(OperationContext* opCtx, CollectionData& c, LogicalOp logicalOp, - int lockType, + LockType lockType, long long micros, Command::ReadWriteType readWriteType); |