summaryrefslogtreecommitdiff
path: root/db/dbeval.cpp
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2009-04-28 10:11:39 -0400
committerAaron <aaron@10gen.com>2009-04-28 10:11:39 -0400
commit532e36902404871a9e56b42a69af12796e5c38e9 (patch)
tree26885e0676574d6c78d70c5409ff158d84d44482 /db/dbeval.cpp
parentce91c67c40e24c817214e1d71bb486d7831035da (diff)
downloadmongo-532e36902404871a9e56b42a69af12796e5c38e9.tar.gz
Revert "Revert "use static variables for OCCASIONALLY/RARELY/ONCE to get per function uniqueness""
This reverts commit ce91c67c40e24c817214e1d71bb486d7831035da.
Diffstat (limited to 'db/dbeval.cpp')
-rw-r--r--db/dbeval.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/db/dbeval.cpp b/db/dbeval.cpp
index a3a235ee082..2932c01dfb9 100644
--- a/db/dbeval.cpp
+++ b/db/dbeval.cpp
@@ -90,8 +90,8 @@ namespace mongo {
int m = t.millis();
if ( m > 100 ) {
out() << "dbeval slow, time: " << dec << m << "ms " << ns << endl;
- OCCASIONALLY log() << code << endl;
- else if ( m >= 1000 ) log() << code << endl;
+ if ( m >= 1000 ) log() << code << endl;
+ else OCCASIONALLY log() << code << endl;
}
}
if ( res ) {