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) {