diff options
author | Dwight <dmerriman@gmail.com> | 2009-02-11 12:25:28 -0500 |
---|---|---|
committer | Dwight <dmerriman@gmail.com> | 2009-02-11 12:25:28 -0500 |
commit | d11d75e7ef92673a7a04bdd02c7a6b200203a45e (patch) | |
tree | ef27878e4b59bc1538041a1c85bbaf12e4325cdb /stdafx.h | |
parent | 4dfbeda3db80a1e66b0c3e948151c8f2147c3feb (diff) | |
download | mongo-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.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |