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:
@@ -255,6 +255,7 @@ CachedNode::Free(Transaction &transaction, off_t offset)
|
|||||||
return status;
|
return status;
|
||||||
|
|
||||||
header->maximum_size = HOST_ENDIAN_TO_BFS_INT64(lastOffset);
|
header->maximum_size = HOST_ENDIAN_TO_BFS_INT64(lastOffset);
|
||||||
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
// add the node to the free nodes list
|
// add the node to the free nodes list
|
||||||
|
|||||||
Reference in New Issue
Block a user