summaryrefslogtreecommitdiff
path: root/stdafx.h
diff options
context:
space:
mode:
authorDwight <dmerriman@gmail.com>2009-02-11 12:25:28 -0500
committerDwight <dmerriman@gmail.com>2009-02-11 12:25:28 -0500
commitd11d75e7ef92673a7a04bdd02c7a6b200203a45e (patch)
treeef27878e4b59bc1538041a1c85bbaf12e4325cdb /stdafx.h
parent4dfbeda3db80a1e66b0c3e948151c8f2147c3feb (diff)
downloadmongo-d11d75e7ef92673a7a04bdd02c7a6b200203a45e.tar.gz
separate counter for RARELY -- really only a partial "fix".
(we want these macros to be fast that is why it is as it is)
Diffstat (limited to 'stdafx.h')
-rw-r--r--stdafx.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/stdafx.h b/stdafx.h
index 01ae11d60fe..37d857c75be 100644
--- a/stdafx.h
+++ b/stdafx.h
@@ -289,10 +289,11 @@ namespace mongo {
#define DEBUGGING if( 0 )
extern unsigned occasion;
+ extern unsigned occasionR;
extern unsigned once;
#define OCCASIONALLY if( ++occasion % 16 == 0 )
-#define RARELY if( ++occasion % 128 == 0 )
+#define RARELY if( ++occasionR % 128 == 0 )
#define ONCE if( ++once == 1 )
#if defined(_WIN32)