evomimic / map-holons

3 stars 1 forks source link

Separate StagedHolons commit from relationships commit #80

Closed evomimic closed 2 months ago

evomimic commented 2 months ago

While working on Issue #74, I discovered that attempting to having saved holons committing their own relationships led to issues trying to _borrowmut the context's CommitManager.

Proposal

Separate the CommitManager's commit processing into two passes. The first pass commits all staged holons. The second pass commits all the relationships for all of the staged_holons. In the second pass, holons not in a Saved state are ignored.

evomimic commented 2 months ago

Resolved in PR #72.