Skip to content

JournalAnchor

Experimental

A journal anchor: the host’s LOCAL per-source sequences, and on admission the store’s REMOTE cursor of the first row to read.

Numbering (owner D209, the design’s section 5): floor is the LOCAL sequence of the first row to read, the newest closed checkpoint’s first record (the log’s first record when there is none); a restore reads from sequence floor. On admission next is the next sequence to write, conditions.predecessor + 1. Example: a checkpoint starting at sequence 5, durable through 9, gives floor 5, floorCursor at sequence 5, predecessor 9 and next 10.

  • floor — Experimental
  • floorCursor — Experimental
  • next — Experimental
Source

schema/msp/experimental/msp.schema.json#/types/JournalAnchor

{
"description": "A journal anchor: the host's LOCAL per-source sequences, and on admission\nthe store's REMOTE cursor of the first row to read.\n\nNumbering (owner D209, the design's section 5): `floor` is the LOCAL\nsequence of the first row to read, the newest closed checkpoint's first\nrecord (the log's first record when there is none); a restore reads from\nsequence `floor`. On admission `next` is the next sequence to write,\n`conditions.predecessor + 1`. Example: a checkpoint starting at sequence\n5, durable through 9, gives `floor` 5, `floorCursor` at sequence 5,\npredecessor 9 and `next` 10.",
"properties": {
"floor": {
"type": "integer"
},
"floorCursor": {
"description": "The store's REMOTE cursor of the row holding LOCAL sequence `floor`,\nthe first row to read (owner D209; owner D204: an opaque string,\nnever parsed or compared). Set only in admission's `initialAnchor`;\nthe first `journal/readPage` starts there. Absent when the journal\nholds no row to read.",
"type": "string"
},
"next": {
"type": "integer"
}
},
"required": [
"floor",
"next"
],
"type": "object",
"x-msp-descriptor": "journal/readPage",
"x-msp-stability": "experimental"
}