Skip to content

kvspace: #571 单 key attr 尾 + 前端 backend_path dladdr + CLI 适配 - #48

Merged
miaobyte merged 3 commits into
mainfrom
feat/571-wire
Oct 30, 2026
Merged

miaobyte merged 3 commits into
mainfrom
feat/571-wire

Conversation

@miaobyte

Copy link
Copy Markdown
Contributor

三个 commit:

  1. 5973767 #571 线格式:[len:u48][storetype:u8][ptr:u8][body][attr],head 固定 8 字节;attr 区从 8+len 开始([attr_len:u16][record...],tag 1=langtype,2+ 预留)。HeadNew* 增 langtype 参数,单 key 一次写,无独立 attr key
  2. 95ac4f1 前端 backend_path dladdr 优先:后端 dlopen 优先本 .so 目录,回退 /usr/lib/kvspace;产物可整体放 kvlang/bin
  3. 8ca70a3 CLI 适配 #571:parse_value 补 langtype、set_one 单 key 写、from_wire/head 纯 wire 自解

验证:Release 构建通过;ctest 2/2;coding4 隔离目录 shm/fs connect 与回退均 OK。

🤖 Generated with Claude Code

miaobyte and others added 3 commits October 30, 2026 14:56
Wire:[len:u48][storetype:u8][ptr:u8][body][attr],head 固定 8 字节,
body 偏移 8;attr 区从 8+len 开始,[attr_len:u16][record...],
record=[tag:u8][len:u16][data],tag 1=langtype(2+ 预留 ro/vid)。

- HeadNew* 增加 langtype 参数(单 key 一次写,无 x‥langtype attr key)
- 新增 HeadAttrLen/HeadLangtype 读取
- codec_abi / test_codec_abi / test_xvalue_head 同步

Co-Authored-By: Claude Code <noreply@anthropic.com>
后端 dlopen 路径优先取本前端 .so 所在目录(dladdr),未取到自身路径时
回退 /usr/lib/kvspace(macOS /usr/local/lib/kvspace)。产物统一放
kvlang/bin 时后端随同目录,无需系统安装。

Co-Authored-By: Claude Code <noreply@anthropic.com>
- parse_value 补 langtype 参数
- set_one 删除独立 attr key 写,改单 key 整体写
- from_wire/head 纯 wire 自解(attr 尾)

Co-Authored-By: Claude Code <noreply@anthropic.com>
@miaobyte
miaobyte merged commit f3338fe into main Oct 30, 2026
2 checks passed
@miaobyte
miaobyte deleted the feat/571-wire branch October 30, 2026 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant