From d004f64e22ca8bf9b032fa4648641a19a5976019 Mon Sep 17 00:00:00 2001 From: Alan Paxton Date: Fri, 6 Dec 2024 14:17:50 +0000 Subject: [PATCH] [bugfix] reset lastFound optimization when page data is dirtied --- exist-core/src/main/java/org/exist/storage/dom/DOMFile.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/exist-core/src/main/java/org/exist/storage/dom/DOMFile.java b/exist-core/src/main/java/org/exist/storage/dom/DOMFile.java index 16946ace2c0..22b3d5e6815 100644 --- a/exist-core/src/main/java/org/exist/storage/dom/DOMFile.java +++ b/exist-core/src/main/java/org/exist/storage/dom/DOMFile.java @@ -3218,6 +3218,9 @@ public boolean isDirty() { void setDirty(final boolean dirty) { saved = !dirty; page.getPageHeader().setDirty(dirty); + if (dirty) { + lastFound.set(0); + } } private void load(final Page page) {