Improve entry save for concurrent changes [stage]

This commit is contained in:
crschnick
2025-01-18 11:08:01 +00:00
parent 1b9e60c6ad
commit 63ba8d830c
2 changed files with 6 additions and 3 deletions

View File

@@ -447,6 +447,11 @@ public class DataStoreEntry extends StorageElement {
return;
}
// Reset the dirty state early
// That way, if any other changes are made during this save operation,
// the dirty bit can be set to true again
dirty = false;
ObjectMapper mapper = JacksonMapper.getDefault();
ObjectNode obj = JsonNodeFactory.instance.objectNode();
@@ -493,8 +498,6 @@ public class DataStoreEntry extends StorageElement {
Files.writeString(normalNotesFile, notes);
}
lastWrittenNotes = notes;
dirty = false;
}
public void setNotes(String newNotes) {

View File

@@ -1 +1 @@
14.1-3
14.1-4