summaryrefslogtreecommitdiff
path: root/db/namespace.h
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2010-12-09 14:44:08 -0500
committerMathias Stearn <mathias@10gen.com>2010-12-10 19:20:43 -0500
commit1c17cece76f77fa00e643ce5e4fa85ccebc9f990 (patch)
treeac651dae252641816dbdb9053aa2f76ed8656c89 /db/namespace.h
parent3469206c4bebd4ee66529bb34deaf3ad9cdcfbb3 (diff)
downloadmongo-1c17cece76f77fa00e643ce5e4fa85ccebc9f990.tar.gz
Pull some durability code into a class for easy disabling
Diffstat (limited to 'db/namespace.h')
-rw-r--r--db/namespace.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/db/namespace.h b/db/namespace.h
index db4bb38209c..be730d44746 100644
--- a/db/namespace.h
+++ b/db/namespace.h
@@ -266,13 +266,13 @@ namespace mongo {
dassert( i < NIndexesMax );
unsigned long long x = ((unsigned long long) 1) << i;
if( multiKeyIndexBits & x ) return;
- *dur::writing(&multiKeyIndexBits) |= x;
+ *getDur().writing(&multiKeyIndexBits) |= x;
}
void clearIndexIsMultikey(int i) {
dassert( i < NIndexesMax );
unsigned long long x = ((unsigned long long) 1) << i;
if( (multiKeyIndexBits & x) == 0 ) return;
- *dur::writing(&multiKeyIndexBits) &= ~x;
+ *getDur().writing(&multiKeyIndexBits) &= ~x;
}
/* add a new index. does not add to system.indexes etc. - just to NamespaceDetails.
@@ -288,12 +288,12 @@ namespace mongo {
void paddingFits() {
double x = paddingFactor - 0.01;
if ( x >= 1.0 )
- *dur::writingNoLog(&paddingFactor) = x;
+ *getDur().writingNoLog(&paddingFactor) = x;
}
void paddingTooSmall() {
double x = paddingFactor + 0.6;
if ( x <= 2.0 )
- *dur::writingNoLog(&paddingFactor) = x;
+ *getDur().writingNoLog(&paddingFactor) = x;
}
// @return offset in indexes[]