* Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27627 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -473,7 +473,7 @@ BPlusTree::SetTo(Inode* stream)
|
|||||||
|
|
||||||
fNodeSize = fHeader->NodeSize();
|
fNodeSize = fHeader->NodeSize();
|
||||||
|
|
||||||
{
|
// validity check
|
||||||
uint32 toMode[] = {S_STR_INDEX, S_INT_INDEX, S_UINT_INDEX,
|
uint32 toMode[] = {S_STR_INDEX, S_INT_INDEX, S_UINT_INDEX,
|
||||||
S_LONG_LONG_INDEX, S_ULONG_LONG_INDEX, S_FLOAT_INDEX,
|
S_LONG_LONG_INDEX, S_ULONG_LONG_INDEX, S_FLOAT_INDEX,
|
||||||
S_DOUBLE_INDEX};
|
S_DOUBLE_INDEX};
|
||||||
@@ -495,7 +495,6 @@ BPlusTree::SetTo(Inode* stream)
|
|||||||
// in the original BFS code - we will honour it nevertheless
|
// in the original BFS code - we will honour it nevertheless
|
||||||
fAllowDuplicates = stream->IsIndex()
|
fAllowDuplicates = stream->IsIndex()
|
||||||
|| (stream->Mode() & S_ALLOW_DUPS) != 0;
|
|| (stream->Mode() & S_ALLOW_DUPS) != 0;
|
||||||
}
|
|
||||||
|
|
||||||
CachedNode cached(this, fHeader->RootNode());
|
CachedNode cached(this, fHeader->RootNode());
|
||||||
RETURN_ERROR(fStatus = cached.Node() ? B_OK : B_BAD_DATA);
|
RETURN_ERROR(fStatus = cached.Node() ? B_OK : B_BAD_DATA);
|
||||||
|
|||||||
Reference in New Issue
Block a user