From f794da1c3a8fd7c980bfcf7b0af6987d9947aa60 Mon Sep 17 00:00:00 2001 From: Christophe Diederichs Date: Wed, 2 Oct 2024 15:32:51 +0100 Subject: [PATCH] missing core update on upgrade --- lib/core.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/core.js b/lib/core.js index 1b374ff1..0dc0dab4 100644 --- a/lib/core.js +++ b/lib/core.js @@ -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()