-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix gc for multiple nodes in text and tree type (#806)
There was an issue in the garbage collection process when dealing with multiple nodes in text(tree) types. When some nodes in text were collected, the corresponding text was removed from elementHasRemovedNodesSetByCreatedAt in the root, preventing the GC from correctly processing the remaining nodes. This PR addresses the inconsistency in the GC process by modifying the condition under which text is removed from elementHasRemovedNodesSetByCreatedAt. Instead of removing text when some nodes are garbage collected, text will now only be removed when all nodes have been garbage collected. This change ensures that GC behaves consistently even when multiple nodes are involved.
- Loading branch information
Showing
2 changed files
with
138 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters