Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save yiwu-arbug/f5ae2b3761494ed293365b3e1e425b97 to your computer and use it in GitHub Desktop.
Save yiwu-arbug/f5ae2b3761494ed293365b3e1e425b97 to your computer and use it in GitHub Desktop.
$ ~/rocksdb/blob_dump --file /dev/shm/blob_db_test/blob_dir/000003.blob --show_blob
Blob log header:
Magic Number : 2395959
Version : 1
Compression : kNoCompression
TTL Range : (1495537200, 1495540800)
Timestamp Range: nil
No blob log footer.
Read record with offset 0x24 (36):
key size : 4
blob size : 11
TTL : 1495540747
time : 18446744073709551615
type : 0, 1
header CRC : 1522802370
CRC : 50890511
key : key2
blob : 42 59 34 44 38 52 72 4a 75 38 00 BY4D8RrJu8.
footer CRC : 239704496
sequence : 3
Read record with offset 0x61 (97):
key size : 4
blob size : 36
TTL : 1495540602
time : 18446744073709551615
type : 0, 1
header CRC : 2218887998
CRC : 2893540191
key : key9
blob : 49 51 32 71 53 77 65 68 58 78 44 57 58 55 41 66 IQ2qSwehXxDWXUAf
6f 55 51 79 61 6f 6e 55 6a 44 75 62 6c 43 64 34 oUQyaonUjDublCd4
73 70 41 00 spA.
footer CRC : 985637806
sequence : 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment