Skip to content

Commit 936c911

Browse files
committed
revert earlier change - read nrecords+1 addresses (not sure why)
1 parent 9e855a0 commit 936c911

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

esm/btree.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ export class BTreeV2 extends AbstractBTree {
461461
let fmts = this.address_formats.get(node_level);
462462
if (node_level != 0) {
463463
let [offset_size, num1_size, num2_size, offset_fmt, num1_fmt, num2_fmt] = fmts;
464-
for (let j=0; j<nrecords; j++) {
464+
for (let j=0; j<=nrecords; j++) {
465465
let address_offset = struct.unpack_from(offset_fmt, this.fh, offset)[0];
466466
offset += offset_size;
467467
let num1 = struct.unpack_from(num1_fmt, this.fh, offset)[0];

0 commit comments

Comments
 (0)