BPlusTree: Style cleanup only, no functional change.

This commit is contained in:
Michael Lotz
2013-05-02 23:26:02 +02:00
parent bb16974758
commit 6b65a838e0
@@ -88,7 +88,7 @@ private:
int32 fSize; int32 fSize;
const char* fText; const char* fText;
}; };
#endif #endif // DEBUG
class BitmapArray { class BitmapArray {
@@ -289,8 +289,9 @@ CachedNode::SetTo(off_t offset, const bplustree_node** _node, bool check)
// instead) // instead)
if (offset > fTree->fHeader.MaximumSize() - fTree->fNodeSize if (offset > fTree->fHeader.MaximumSize() - fTree->fNodeSize
|| offset <= 0 || offset <= 0
|| (offset % fTree->fNodeSize) != 0) || (offset % fTree->fNodeSize) != 0) {
RETURN_ERROR(B_BAD_VALUE); RETURN_ERROR(B_BAD_VALUE);
}
if (InternalSetTo(NULL, offset) != NULL && check) { if (InternalSetTo(NULL, offset) != NULL && check) {
// sanity checks (links, all_key_count) // sanity checks (links, all_key_count)
@@ -345,8 +346,9 @@ CachedNode::MakeWritable(Transaction& transaction)
return NULL; return NULL;
if (block_cache_make_writable(transaction.GetVolume()->BlockCache(), if (block_cache_make_writable(transaction.GetVolume()->BlockCache(),
fBlockNumber, transaction.ID()) == B_OK) fBlockNumber, transaction.ID()) == B_OK) {
return fNode; return fNode;
}
return NULL; return NULL;
} }