Repository navigation
conference: a world entity that leaves is deleted, not marked present = 0 - #1525
Merged
Merged
Conversation
… = 0 write_room_entities marked an entity the world no longer has present = 0, so the room tree, and every client's copy and join snapshot, kept a subtree for every entity that ever ran. Deletes replicate since #1473, and the room's scene objects, lights and avatar options are removed that way since #1483; entities now are too. - section_writer::remove takes an entry (a leaf or a subtree) out of a revisioned section: one delete, which every peer applies, and whose tombstone keeps a peer that still holds the entry from bringing it back. Never the section itself. - write_room_entities removes each entity the section has that the world does not, before the commit that bumps the revision, so a reader that sees the new revision no longer finds it. Readers still take only entries with present = 1, which a write sets last. Docs: room_entities.h, the conference roadmap's reaping note, ARIADNE_WORLDS.md's scene wire format and old-relay note.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The last thing in the room tree that still left softly.
write_room_entitiesmarked an entity the world no longer haspresent = 0, so the tree (and every client's copy and join snapshot) kept a subtree for every entity that ever ran. Deletes replicate since #1473, and #1483 already removes the room's scene objects, lights and avatar options that way; entities waited on #1469 (OW5j), which edited the lines beside this one and has merged.What changes
section_writer::removetakes an entry (a leaf or a subtree) out of a revisioned section: one delete, which every peer applies, and whose tombstone keeps a peer that still holds the entry from bringing it back. It never removes the section itself.write_room_entitiesremoves each entity the section has that the world does not, before the commit that bumps the revision. So a reader that sees the new revision no longer finds it.present = 1, which a write sets last.Tests
pose_stream_test:RoomEntities.TheSectionCarriesThemAndRemovesTheOnesThatWent: the entity that went leaves the tree, and comes back with a later write.world_rules_test:SectionTest.RemoveTakesAnEntryOut: a subtree, a leaf, an id never written, and never the section itself; the stamp stays.