review: rebuild a file the mesh once wrote whole, keep links, give back a missing line end, and release a hold only after the write (hq issue 128)
This commit is contained in:
@@ -70,6 +70,13 @@ type Applied struct {
|
||||
// anywhere saying why.
|
||||
Wrote string `json:"wrote,omitempty"`
|
||||
|
||||
// Kept is where the original of a file this host wrote over was kept (novox/hq ADR 0100):
|
||||
// by the keep on its first write, or by the hold that was released when its module was taken.
|
||||
// Recorded rather than only reported, because a file once written whole and now written into
|
||||
// (novox/hq issue 128) is given back its original with the mesh's region in it — and a path
|
||||
// said once in a log line is not a path the host can find again.
|
||||
Kept string `json:"kept,omitempty"`
|
||||
|
||||
// Into is set for a file written into rather than over (novox/hq ADR 0102): the format, what
|
||||
// each of the mesh's keys held before it set them, which of them were absent, and whether the
|
||||
// file itself was — so undeclaring it gives the machine back exactly what it had.
|
||||
@@ -107,6 +114,9 @@ type Into struct {
|
||||
Separated bool `json:"separated,omitempty"`
|
||||
// At is where the host added the region: "start", or empty for the end.
|
||||
At string `json:"at,omitempty"`
|
||||
// Ended says the machine's last line had no line end and the host gave it one to add the
|
||||
// region after it, so taking the region out takes that line end too.
|
||||
Ended bool `json:"ended,omitempty"`
|
||||
}
|
||||
|
||||
// State is the whole of what a node knows about what it has done.
|
||||
|
||||
Reference in New Issue
Block a user