aboutsummaryrefslogtreecommitdiffstats
path: root/src/federation/store/set.rs
Commit message (Collapse)AuthorAgeFilesLines
* federation: the store's worker looks when something changed, not every five ↵tv7 hours1-0/+15
| | | | | | | | | | seconds Every five seconds it looked at the changes screening refused, wrote its set of events to its file, and read its store anew. It now looks where screening refuses a change, writes the set five seconds after it changed, and wakes for what the set is to let go of. A node voting by itself still looks every five seconds: its rules count time.
* federation: a node on a set begins anew from another checkpoint its operator ↵tv10 hours1-1/+54
| | | | | | | | | | | | | pins A pin counted only while the node had no file of its set, so a node behind for longer than the others keep what a checkpoint forgot, or one undoing a move, had to start without its file, and lost what it refused of its own and what its operator had it drop. The file now says which checkpoint was pinned when the set began: with another pinned, and not the one the store is at, the node gathers its set anew from that one, its store refusing what the one in the file refused. A node of both kinds makes its set of its document then, where it finds the pin.
* federation: a stopped node on a set passes on what it holds backtv17 hours1-12/+110
| | | | | | | | | A store that stopped at an event it can't judge holds back what comes after, and its set gave none of it to others: what was put through such a node reached nobody, and a restart lost it. The set now names what its store holds back among what it gives, passes it on at once as it does what it took, and keeps it in its file; once the store takes again, it gives of it what the store took, or refused of its own.
* federation: a set keeps where its store stands, and its entries' namestv46 hours1-5/+55
| | | | | | | | Saying where a set stands read the store's heads anew, which costs its events, and finding an entry by its name hashed every entry: both for every message. A set now keeps the one, read anew where its store changed, and the other as entries come and go; in tests both are compared with what is read anew.
* federation: a set keeps its names as it changes, in runs with their sumstv46 hours1-17/+146
| | | | | | | | | | | | | | | | | | | | | A set built the names it gives to others anew for every message, and a range's fingerprint cost its names. Now ranges::Names holds names in order in runs of up to 512, each with what it adds up to, so a range's fingerprint costs its ends and a sum per run between; and a set keeps one, adding and taking out as its store takes and lets go, entries come and go, and what it holds beside goes. In tests the names kept are compared with those read anew. A node splits a range where a number of its own says (ranges::answer's salt, from the system's randomness in store::passing), so that nobody knows beforehand which ranges it compares. Who is a member, which is the fold's to say of the store's state, a set asks only where its store changed, and once for the events of one message (Set::offer_all): asked for every event offered, it was what made catching up slow. A set's store has no more than 1024 events wait.
* federation: a set of events as its file holds ittv47 hours1-0/+217
| | | | | | | | | | Set::save and load (continuum-events/1, then MessagePack): the store's checkpoint and what it keeps, what it took in the order taken, what its node refuses of its own and its operator dropped, what the document holds beside the store, of what a checkpoint forgot how long ago, and the members' entries. Read back, every event is offered to a store anew and every entry checked. What waits for what it builds on isn't saved: it comes again.
* federation: a member's entry in a set of eventstv47 hours1-0/+212
| | | | | | | | | | | | | | What a node says of itself (store::entry::Entry): a JSON map of no more than 16 KiB, with its count, signed with its node key for its store. A set holds each member's newest (Set::put_entry): the highest count, of two of one count the lower name; none of a node the store doesn't name a member as it reads now, and those it held go with their node. Their names are among the set's, to catch up by; and a set says what of a peer's names it would have (Set::wants, Store::knows), which leaves out what its store refused, waits for or forgot, and a stranger's entry until who is a member changes. The store's test fold names members, by what counts at node:<node ID>.
* federation: a set of events, the store's own documenttv48 hours1-0/+393
The kind events (docs/document.md, A set of events), as far as holding goes (store::set::Set): a store, and beside it what the store lets go of and its node still gives to others: what its history takes and the node doesn't; what builds on that, unjudged, no more than 1024 events or 16 MiB, the oldest first to go; what a checkpoint forgot, for a time its operator sets. What the fold refuses is held by nobody. Its names, to catch up by (document::ranges). Used by nothing yet: no member's entry, no file, no passing on.