mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-12-06 17:31:01 +00:00
* feat(mito2): state whether an SST keeps its source rows' own sequences A compaction may replace a file's per-row `__sequence` column with one file-level constant. Whether that happened is a fact the write side already knows, so state it on the file: `RowSequenceProvenance::Original` on `FileMeta`, produced by a flush whose writer keeps the allocator's numbers and by a compaction only when every input of the merge keeps its own. Nothing reads the field yet; the per-piece exact read that consumes it lands on top. Signed-off-by: discord9 <discord9@163.com> * feat(mito2): keep or drop a file's row-sequence proof at manifest admission A copy to another region clears the proof (the target has its own sequence domain), an edit that drops a file's rows clears it, and a version update that replaces an object keeps the newer index generation while carrying the proof forward. A legacy manifest without the field reads as `None`. Signed-off-by: discord9 <discord9@163.com> * test(mito2): cover the row-sequence proof of flush and compaction outputs Covers flush keeping or stamping the allocator's numbers, compaction keeping them only when every input does, a region edit dropping the proof, a staging-manifest import keeping it, and a region copy clearing it. Also lets the purger delete a retired compaction output first, fixing a delete race in the publication test. Signed-off-by: discord9 <discord9@163.com> --------- Signed-off-by: discord9 <discord9@163.com>