diff options
author | Eliot Horowitz <eliot@10gen.com> | 2012-06-12 11:29:49 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2012-06-12 11:29:49 -0400 |
commit | d011b4283cbd43d2e45fe062c385baff173a15bb (patch) | |
tree | f321fa01666589e322ee59587a31082b7aec31fb /src/mongo/db/curop.h | |
parent | 32f3e9a4d2f627c56094e6cc1dc3b5ab8cda4171 (diff) | |
download | mongo-d011b4283cbd43d2e45fe062c385baff173a15bb.tar.gz |
SERVER-4628 - more lock reporting
Diffstat (limited to 'src/mongo/db/curop.h')
-rw-r--r-- | src/mongo/db/curop.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mongo/db/curop.h b/src/mongo/db/curop.h index 1aebdd7a8a4..7b4f30f7568 100644 --- a/src/mongo/db/curop.h +++ b/src/mongo/db/curop.h @@ -38,7 +38,7 @@ namespace mongo { void reset(); - string toString() const; + string report( const CurOp& curop ) const; void append( const CurOp& curop, BSONObjBuilder& b ) const; // ------------------- @@ -217,6 +217,9 @@ namespace mongo { void setExpectedLatencyMs( long long latency ) { _expectedLatencyMs = latency; } void recordGlobalTime( long long micros ) const; + + const LockStat& lockStat() const { return _lockStat; } + LockStat& lockStat() { return _lockStat; } private: friend class Client; void _reset(); @@ -240,7 +243,8 @@ namespace mongo { ProgressMeter _progressMeter; volatile bool _killed; int _numYields; - + LockStat _lockStat; + // this is how much "extra" time a query might take // a writebacklisten for example will block for 30s // so this should be 30000 in that case |