1982
}
1983
1984
>
n.mutation.UpdatedNodes[encodedPath] = node.serializedNode
tree.go
1985
>
// DeletedNodes map is populated when syncing tree structure. However, since we may sync tree structure
1986
>
// multiple times in one transaction, if node at the same path was previously deleted, have structure synced,
1987
>
// then get re-created, the same encoded path will exists in both UpdatedNodes and DeletedNodes maps.
1988
>
//
1989
>
// serializeNode only happens once at the end of a transaction, and here we know the node at this encoded path exists,
1990
>
// remove it from the DeletedNodes map.
1991
>
delete(n.mutation.DeletedNodes, encodedPath)
1992
}
1993