CarnationWang23 / hyracks

Automatically exported from code.google.com/p/hyracks
Apache License 2.0
0 stars 0 forks source link

The BTree root's level is not set correctly #82

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The root's level in the BTree is always set to 1.
This is caused by a bug in the method BTree.createNewRoot(), which is called 
when a new root node is created due to a propagated split. Currently, the bug 
seems to have no effects on the BTree operations.

The bug should be fixed by replacing this line:
ctx.interiorFrame.initBuffer((byte) (ctx.leafFrame.getLevel() + 1));

with this line:
ctx.interiorFrame.initBuffer((byte) (ctx.InteriorFrame.getLevel() + 1));

Original issue reported on code.google.com by salsuba...@gmail.com on 25 Jul 2012 at 4:09

GoogleCodeExporter commented 8 years ago

Original comment by alexande...@gmail.com on 25 Jul 2012 at 4:22

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r1760.

Original comment by alexande...@gmail.com on 25 Jul 2012 at 4:25