Cover the ancestor clash and name what drawCheck compares by

This commit is contained in:
2026-09-26 14:01:28 +02:00
committed by Lillem4n
parent f0b92260ed
commit e3017801d1
3 changed files with 7 additions and 6 deletions
+4 -4
View File
@@ -102,10 +102,10 @@ func checkFamilies(reads []pathRead) error {
return replayPairs(reads)
}
// replayPairs replays every two reads of one draw group that can render together into
// one draws, the earlier read first. Pairs find every conflict a full replay would: a
// read pins a row's ancestors with it, and clash judges a row against one pinned table,
// so a conflict is between two reads' pins and a third read adds nothing to it.
// replayPairs replays every two reads that can render together into one draws, the earlier
// read first. Pairs find every conflict a full replay would: clash judges a row against one
// pinned table, and the read that pinned it holds that pin itself, since a read's pins carry
// its rows' ancestors, so the pair of those two reads clashes the same way.
func replayPairs(reads []pathRead) error {
for i, r := range reads {
if r.tr == nil {