Fixed a bug I introduced when porting BFS to Haiku: when the file size of a BPlusTree

could be shrinked (because the last node was freed), the free node pointer of the
header was still accidently set to that node.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14040 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2005-08-21 17:41:52 +00:00
parent 72a263b6cf
commit bae91f0a4c

View File

@ -255,6 +255,7 @@ CachedNode::Free(Transaction &transaction, off_t offset)
return status;
header->maximum_size = HOST_ENDIAN_TO_BFS_INT64(lastOffset);
return B_OK;
}
// add the node to the free nodes list