Repository navigation
kvspace-durable: 删除 byte kind,slack 后缀统一 uint8 - #33
Merged
Merged
Conversation
- headlenpow 的 slack_count / reserve 白名单 "byte" → "uint8" - ro/vid sidecar 线上格式 [5]byte → [5]uint8(破坏性:存量数据需重建) - xvalue::encode_head 去掉 "byte" 分支(公共 encode 入口;sidecar 走 headlenpow 不受影响) Co-Authored-By: Claude Code <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更
删除 XValue 的
bytekind,slack 后缀统一为uint8。src/headlenpow.rs:slack_count的"byte"分支 →"uint8";reserve的 slack 白名单"byte"→"uint8"src/metadata.rs:ro/vid sidecar 线上格式[5]byte→[5]uint8src/xvalue.rs:encode_head去掉"byte"分支(公共 encode 入口;sidecar 走headlenpow::encode直呼,不经过此处)本次改变了
/.kvspace-meta/<hex>sidecar 的 langtype([5]byte→[5]uint8)。既有磁盘 / 对象存储上的 ro/vid 元数据无法解码,需重建(key 的数据本体不受影响,只是 ro/vid 两个字段读不出来)。这是已接受的破坏性代价。验证
metadata::tests::metadata_roundtrip真实走 encode → decode 往返(并含负面断言data[64]=2 → None),确认测的是新格式。