Skip to content

Commit

Permalink
fix insertValues oplog message
Browse files Browse the repository at this point in the history
  • Loading branch information
mafintosh committed Sep 13, 2023
1 parent 01b034b commit 929c7f7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -439,18 +439,18 @@ module.exports = class Core {
const bitfield = {
drop: false,
start: offset,
end: offset + values.length
length: values.length
}

await this.blocks.putBatch(offset, values, byteOffset)
await this.oplog.append({
await this.oplog.append([{
userData: null,
treeNodes,
treeUpgrade: null,
bitfield
}, false)
}], false)

this.bitfield.setRange(bitfield.start, values.length, true)
this.bitfield.setRange(bitfield.start, bitfield.length, true)
for (const node of treeNodes) this.tree.unflushed.set(node.index, node)

const status = updateContig(this.header, bitfield, this.bitfield)
Expand Down

0 comments on commit 929c7f7

Please sign in to comment.