diff options
author | Tad Marshall <tad@10gen.com> | 2013-02-26 04:14:21 -0500 |
---|---|---|
committer | Tad Marshall <tad@10gen.com> | 2013-02-26 11:06:58 -0500 |
commit | 5bbdfa31eba4680f8aee37300db852706b9289cb (patch) | |
tree | ce005922418f98dedfaa0197d3cb2d6a7495be96 /jstests | |
parent | 4a39a5bcbb2c298432819e66febab717e2c67b1a (diff) | |
download | mongo-5bbdfa31eba4680f8aee37300db852706b9289cb.tar.gz |
SERVER-8331 Remove checks that assume lock acquisition takes at least 1 microsecond
On a fast machine in Windows, a lock can be acquired in 919 nanoseconds (which is
truncated to 0 microseconds by the Timer code) so we can't check these times against
zero. Also, put checks in the same order in similar sections ("r" before "w").
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/profile4.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/jstests/profile4.js b/jstests/profile4.js index 7e5241a808e..8ec356a39f5 100644 --- a/jstests/profile4.js +++ b/jstests/profile4.js @@ -56,16 +56,16 @@ try { assert.eq( 0, o.lockStats.timeLockedMicros.r ); assert.lt( 0, o.lockStats.timeLockedMicros.w ); assert.eq( 0, o.lockStats.timeAcquiringMicros.r ); - assert.lt( 0, o.lockStats.timeAcquiringMicros.w ); + //assert.lt( 0, o.lockStats.timeAcquiringMicros.w ); // Removed due to SERVER-8331 // check read lock stats are set t.find(); o = lastOp(); assert.eq('query', o.op); - assert.eq( 0, o.lockStats.timeLockedMicros.w ); assert.lt( 0, o.lockStats.timeLockedMicros.r ); - assert.lt( 0, o.lockStats.timeAcquiringMicros.r ); - assert.lt( 0, o.lockStats.timeAcquiringMicros.w ); + assert.eq( 0, o.lockStats.timeLockedMicros.w ); + //assert.lt( 0, o.lockStats.timeAcquiringMicros.r ); // Removed due to SERVER-8331 + //assert.lt( 0, o.lockStats.timeAcquiringMicros.w ); // Removed due to SERVER-8331 t.save( {} ); t.save( {} ); |