Skip to content

Commit

Permalink
missing core update on upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
chm-diederichs committed Oct 2, 2024
1 parent b0b0e10 commit f794da1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,11 @@ class SessionState {
update.bitfield.setRange(start, end, true)
update.flushTreeBatch(batch)

const bitfield = { start, length: end - start, drop: false }
const status = batch.upgraded ? 0b0001 : 0

update.coreUpdate({ status, bitfield, value: null, from: null })

await this.flushUpdate(update)
} finally {
this._clearActiveBatch()
Expand Down

0 comments on commit f794da1

Please sign in to comment.