196 Star 315 Fork 256

云溪数据库公司/zb-kvs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
DUMP_FORMAT.md 763 Bytes
一键复制 编辑 原始数据 按行查看 历史
labracy01 提交于 2021-02-27 08:30 . fork from rocksdb of znbase

RocksDB dump format

The version 1 RocksDB dump format is fairly simple:

  1. The dump starts with the magic 8 byte identifier "ROCKDUMP"

  2. The magic is followed by an 8 byte big-endian version which is 0x00000001.

  3. Next are arbitrarily sized chunks of bytes prepended by 4 byte little endian number indicating how large each chunk is.

  4. The first chunk is special and is a json string indicating some things about the creation of this dump. It contains the following keys:

  • database-path: The path of the database this dump was created from.
  • hostname: The hostname of the machine where the dump was created.
  • creation-time: Unix seconds since epoc when this dump was created.
  1. Following the info dump the slices paired into are key/value pairs.
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/ZNBase/zn-kvs.git
git@gitee.com:ZNBase/zn-kvs.git
ZNBase
zn-kvs
zb-kvs
develop

搜索帮助

Cb406eda 1850385 E526c682 1850385