dizzy.engine.dagstore.sync¶
dizzy.engine.dagstore.sync
¶
Anti-entropy sync: the stop-at-known walk, node-to-node.
sync(dst, src) pulls into dst everything src has that dst lacks:
start from src's heads, walk parent pointers backwards, stop at anything dst
already holds (exactly the feat's incremental-ingest idiom), then deliver the
fetched subset parents-first. Content hashes make every fetched record
verifiable on arrival (add recomputes them).
sync(dst, src)
¶
Pull src's missing ancestry into dst. Returns events transferred.
Source code in dizzy/src/dizzy/engine/dagstore/sync.py
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | |