Skip to content

Commit b54e14f

Browse files
author
Tad Marshall
committed
Whitespace (tabs), indentation
1 parent ac1521c commit b54e14f

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/mongo/db/btree.cpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ namespace mongo {
9090
template< class V >
9191
void BucketBasics<V>::assertWritable() {
9292
if( cmdLine.dur )
93-
dur::assertAlreadyDeclared(this, V::BucketSize);
93+
dur::assertAlreadyDeclared(this, V::BucketSize);
9494
}
9595

9696
template< class V >
@@ -179,7 +179,7 @@ namespace mongo {
179179
}
180180
}
181181
if ( !this->nextChild.isNull() ) {
182-
DiskLoc ll = this->nextChild;
182+
DiskLoc ll = this->nextChild;
183183
const BtreeBucket *b = ll.btree<V>();
184184
if ( strict ) {
185185
verify( b->parent == thisLoc );
@@ -434,7 +434,7 @@ namespace mongo {
434434
template< class V >
435435
int BucketBasics<V>::packedDataSize( int refPos ) const {
436436
if ( this->flags & Packed ) {
437-
return V::BucketSize - this->emptySize - headerSize();
437+
return V::BucketSize - this->emptySize - headerSize();
438438
}
439439
int size = 0;
440440
for( int j = 0; j < this->n; ++j ) {
@@ -745,7 +745,7 @@ namespace mongo {
745745
bool guessIncreasing = false;
746746
template< class V >
747747
bool BtreeBucket<V>::find(const IndexDetails& idx, const Key& key, const DiskLoc &rl,
748-
const Ordering &order, int& pos, bool assertIfDup) const {
748+
const Ordering &order, int& pos, bool assertIfDup) const {
749749
Loc recordLoc;
750750
recordLoc = rl;
751751
globalIndexCounters.btree( (char*)this );
@@ -824,7 +824,7 @@ namespace mongo {
824824
ClientCursor::informAboutToDeleteBucket(thisLoc); // slow...
825825
verify( !isHead() );
826826

827-
DiskLoc ll = this->parent;
827+
DiskLoc ll = this->parent;
828828
const BtreeBucket *p = ll.btree<V>();
829829
int parentIdx = indexInParent( thisLoc );
830830
p->childForPos( parentIdx ).writing().Null();
@@ -944,7 +944,7 @@ namespace mongo {
944944
id.head.writing() = this->nextChild;
945945
}
946946
else {
947-
DiskLoc ll = this->parent;
947+
DiskLoc ll = this->parent;
948948
ll.btree<V>()->childForPos( indexInParent( thisLoc ) ).writing() = this->nextChild;
949949
}
950950
BTREE(this->nextChild)->parent.writing() = this->parent;
@@ -1330,7 +1330,7 @@ namespace mongo {
13301330
verify( kn->prevChildBucket == lchild );
13311331
this->nextChild.writing() = rchild;
13321332
if ( !rchild.isNull() )
1333-
BTREE(rchild)->parent.writing() = thisLoc;
1333+
BTREE(rchild)->parent.writing() = thisLoc;
13341334
}
13351335
else {
13361336
kn->prevChildBucket = lchild;
@@ -1593,15 +1593,15 @@ namespace mongo {
15931593
}
15941594
else {
15951595
// go up parents until rightmost/leftmost node is >=/<= target or at top
1596-
while( !BTREE(thisLoc)->parent.isNull() ) {
1597-
thisLoc = BTREE(thisLoc)->parent;
1596+
while( !BTREE(thisLoc)->parent.isNull() ) {
1597+
thisLoc = BTREE(thisLoc)->parent;
15981598
if ( direction > 0 ) {
1599-
if ( customBSONCmp( BTREE(thisLoc)->keyNode( BTREE(thisLoc)->n - 1 ).key.toBson(), keyBegin, keyBeginLen, afterKey, keyEnd, keyEndInclusive, order, direction ) >= 0 ) {
1599+
if ( customBSONCmp( BTREE(thisLoc)->keyNode( BTREE(thisLoc)->n - 1 ).key.toBson(), keyBegin, keyBeginLen, afterKey, keyEnd, keyEndInclusive, order, direction ) >= 0 ) {
16001600
break;
16011601
}
16021602
}
16031603
else {
1604-
if ( customBSONCmp( BTREE(thisLoc)->keyNode( 0 ).key.toBson(), keyBegin, keyBeginLen, afterKey, keyEnd, keyEndInclusive, order, direction ) <= 0 ) {
1604+
if ( customBSONCmp( BTREE(thisLoc)->keyNode( 0 ).key.toBson(), keyBegin, keyBeginLen, afterKey, keyEnd, keyEndInclusive, order, direction ) <= 0 ) {
16051605
break;
16061606
}
16071607
}

0 commit comments

Comments
 (0)