Expand description
Roll a collection back to the state it held before a write.
A VectorWriteMark records what a write can change: the id counter,
the binding of every surrogate the write names, which of the named nodes
were live, and the multi-vector documents it names. Rolling back drops
every node inserted since the mark from the growing segment, so the id
counter returns to where it was and the next insert takes the same id it
would have taken without the write. Then it puts every binding and every
tombstone back.
The inserted nodes must still sit in the growing segment or the IVF-PQ index: a seal or an IVF-PQ training between the mark and the rollback moves them out, and the rollback then reports that it cannot restore the mark.
Structs§
- Vector
Write Mark - A collection’s state before a write. See the module docs.