Skip to content

Commit

Permalink
revert earlier change - read nrecords+1 addresses (not sure why)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmaranville committed Oct 21, 2022
1 parent 9e855a0 commit 936c911
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esm/btree.js
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ export class BTreeV2 extends AbstractBTree {
let fmts = this.address_formats.get(node_level);
if (node_level != 0) {
let [offset_size, num1_size, num2_size, offset_fmt, num1_fmt, num2_fmt] = fmts;
for (let j=0; j<nrecords; j++) {
for (let j=0; j<=nrecords; j++) {
let address_offset = struct.unpack_from(offset_fmt, this.fh, offset)[0];
offset += offset_size;
let num1 = struct.unpack_from(num1_fmt, this.fh, offset)[0];
Expand Down

0 comments on commit 936c911

Please sign in to comment.