Zheng Shao
127ee2e677
manifest_dump: Fix the help message and make it consistent
...
Summary: ldb uses --output_hex so make manifest_dump do the same thing.
Test Plan:
[zshao@dev485 ~/git/rocksdb] ./manifest_dump --output_hex --file=/data/users/zshao/test_leveldb/MANIFEST-000034
manifest_file_number 42 next_file_number 43 last_sequence 2311567 log_number 36 prev_log_number 0
--- level 0 --- version# 0 ---
--- level 1 --- version# 0 ---
--- level 2 --- version# 0 ---
--- level 3 --- version# 0 ---
5:27788699['0000027F4FBE0000' @ 1 : 1 .. '11CE749602C90000' @ 160642 : 1]
7:27785313['11CE773DA7E00000' @ 160643 : 1 .. '23A4C63EC55D0000' @ 321094 : 1]
9:27784288['23A4D581FCD30000' @ 321095 : 1 .. '3576291D12D00000' @ 481428 : 1]
38:64378271['35762BF0E0CE0000' @ 481429 : 1 .. '5E987E0604700000' @ 852910 : 1]
39:64379046['5E987EB0BDD50000' @ 852911 : 1 .. '87C954330E840000' @ 1224603 : 1]
40:10169201['87C95507E49C0000' @ 1224604 : 1 .. '8E48DC0933B70000' @ 1283317 : 1]
21:27798825['8E48DFB0D7CE0000' @ 1283318 : 1 .. 'A00675F8AD7E0000' @ 1443826 : 1]
23:27793751['A006777536E30000' @ 1443827 : 1 .. 'B1D1787FE8670000' @ 1604553 : 1]
25:27801659['B1D179289BB30000' @ 1604554 : 1 .. 'C396D3A69DCE0000' @ 1765012 : 1]
27:27792661['C396DA1E03B10000' @ 1765013 : 1 .. 'D55C9974FCC10000' @ 1925513 : 1]
29:27789095['D55C9B47CBC00000' @ 1925514 : 1 .. 'E71F67D11CCC0000' @ 2085789 : 1]
31:27793145['E71F7A667E740000' @ 2085790 : 1 .. 'F8D4712EF3D90000' @ 2246454 : 1]
41:11246031['F8D4715916A70000' @ 2246455 : 1 .. 'FFFFFCAE97DF0000' @ 2311567 : 1]
--- level 4 --- version# 0 ---
--- level 5 --- version# 0 ---
--- level 6 --- version# 0 ---
Reviewers: dhruba, sheki, emayanke
Reviewed By: dhruba
CC: leveldb
Differential Revision: https://reviews.facebook.net/D7575
12 years ago
Zheng Shao
c28097538a
manifest_dump: Add --hex=1 option
...
Summary: Without this option, manifest_dump does not print binary keys for files in a human-readable way.
Test Plan:
./manifest_dump --hex=1 --verbose=0 --file=/data/users/zshao/fdb_comparison/leveldb/fbobj.apprequest-0_0_original/MANIFEST-000002
manifest_file_number 589 next_file_number 590 last_sequence 2311567 log_number 543 prev_log_number 0
--- level 0 --- version# 0 ---
532:1300357['0000455BABE20000' @ 2183973 : 1 .. 'FFFCA5D7ADE20000' @ 2184254 : 1]
536:1308170['000198C75CE30000' @ 2203313 : 1 .. 'FFFCF94A79E30000' @ 2206463 : 1]
542:1321644['0002931AA5E50000' @ 2267055 : 1 .. 'FFF77B31C5E50000' @ 2270754 : 1]
544:1286390['000410A309E60000' @ 2278592 : 1 .. 'FFFE470A73E60000' @ 2289221 : 1]
538:1298778['0006BCF4D8E30000' @ 2217050 : 1 .. 'FFFD77DAF7E30000' @ 2220489 : 1]
540:1282353['00090D5356E40000' @ 2231156 : 1 .. 'FFFFF4625CE40000' @ 2231969 : 1]
--- level 1 --- version# 0 ---
510:2112325['000007F9C2D40000' @ 1782099 : 1 .. '146F5B67B8D80000' @ 1905458 : 1]
511:2121742['146F8A3023D60000' @ 1824388 : 1 .. '28BC8FBB9CD40000' @ 1777993 : 1]
512:801631['28BCD396F1DE0000' @ 2080191 : 1 .. '3082DBE9ADDB0000' @ 1989927 : 1]
Reviewers: dhruba, sheki, emayanke
Reviewed By: dhruba
CC: leveldb
Differential Revision: https://reviews.facebook.net/D7425
12 years ago
Dhruba Borthakur
7889e09455
Enhance manifest_dump to print each individual edit.
...
Summary:
The manifest file contains a series of edits. If the verbose
option is switched on, then print each individual edit in the
manifest file. This helps in debugging.
Test Plan: make clean manifest_dump
Reviewers: emayanke, sheki
Reviewed By: sheki
CC: leveldb
Differential Revision: https://reviews.facebook.net/D6807
12 years ago
Dhruba Borthakur
4b622ab0f2
Enhance manifest_dump to print each individual edit.
...
Summary:
The manifest file contains a series of edits. If the verbose
option is switched on, then print each individual edit in the
manifest file. This helps in debugging.
Test Plan: make clean manifest_dump
Reviewers: emayanke, sheki
Reviewed By: sheki
CC: leveldb
Differential Revision: https://reviews.facebook.net/D6807
12 years ago
Dhruba Borthakur
407727b75f
Fix compiler warnings. Use uint64_t instead of uint.
...
Summary: Fix compiler warnings. Use uint64_t instead of uint.
Test Plan: build using -Wall
Reviewers: heyongqiang
Reviewed By: heyongqiang
Differential Revision: https://reviews.facebook.net/D5355
12 years ago
Dhruba Borthakur
fe93631678
Clean up compiler warnings generated by -Wall option.
...
Summary:
Clean up compiler warnings generated by -Wall option.
make clean all OPT=-Wall
This is a pre-requisite before making a new release.
Test Plan: compile and run unit tests
Reviewers: heyongqiang
Reviewed By: heyongqiang
Differential Revision: https://reviews.facebook.net/D5019
12 years ago
Dhruba Borthakur
f3ee54526f
Utility to dump manifest contents.
...
Summary:
./manifest_dump --file=/tmp/dbbench/MANIFEST-000002
Output looks like
manifest_file_number 30 next_file_number 31 last_sequence 388082 log_number 28 prev_log_number 0
--- level 0 ---
--- level 1 ---
--- level 2 ---
5:3244155['0000000000000000' @ 1 : 1 .. '0000000000028220' @ 28221 : 1]
7:3244177['0000000000028221' @ 28222 : 1 .. '0000000000056441' @ 56442 : 1]
9:3244156['0000000000056442' @ 56443 : 1 .. '0000000000084662' @ 84663 : 1]
11:3244178['0000000000084663' @ 84664 : 1 .. '0000000000112883' @ 112884 : 1]
13:3244158['0000000000112884' @ 112885 : 1 .. '0000000000141104' @ 141105 : 1]
15:3244176['0000000000141105' @ 141106 : 1 .. '0000000000169325' @ 169326 : 1]
17:3244156['0000000000169326' @ 169327 : 1 .. '0000000000197546' @ 197547 : 1]
19:3244178['0000000000197547' @ 197548 : 1 .. '0000000000225767' @ 225768 : 1]
21:3244155['0000000000225768' @ 225769 : 1 .. '0000000000253988' @ 253989 : 1]
23:3244179['0000000000253989' @ 253990 : 1 .. '0000000000282209' @ 282210 : 1]
25:3244157['0000000000282210' @ 282211 : 1 .. '0000000000310430' @ 310431 : 1]
27:3244176['0000000000310431' @ 310432 : 1 .. '0000000000338651' @ 338652 : 1]
29:3244156['0000000000338652' @ 338653 : 1 .. '0000000000366872' @ 366873 : 1]
--- level 3 ---
--- level 4 ---
--- level 5 ---
--- level 6 ---
Test Plan: run on test directory created by dbbench
Reviewers: heyongqiang
Reviewed By: heyongqiang
CC: hustliubo
Differential Revision: https://reviews.facebook.net/D4743
12 years ago
Dhruba Borthakur
2aa514ec8c
Utility to dump manifest contents.
...
Summary:
./manifest_dump --file=/tmp/dbbench/MANIFEST-000002
Output looks like
manifest_file_number 30 next_file_number 31 last_sequence 388082 log_number 28 prev_log_number 0
--- level 0 ---
--- level 1 ---
--- level 2 ---
5:3244155['0000000000000000' @ 1 : 1 .. '0000000000028220' @ 28221 : 1]
7:3244177['0000000000028221' @ 28222 : 1 .. '0000000000056441' @ 56442 : 1]
9:3244156['0000000000056442' @ 56443 : 1 .. '0000000000084662' @ 84663 : 1]
11:3244178['0000000000084663' @ 84664 : 1 .. '0000000000112883' @ 112884 : 1]
13:3244158['0000000000112884' @ 112885 : 1 .. '0000000000141104' @ 141105 : 1]
15:3244176['0000000000141105' @ 141106 : 1 .. '0000000000169325' @ 169326 : 1]
17:3244156['0000000000169326' @ 169327 : 1 .. '0000000000197546' @ 197547 : 1]
19:3244178['0000000000197547' @ 197548 : 1 .. '0000000000225767' @ 225768 : 1]
21:3244155['0000000000225768' @ 225769 : 1 .. '0000000000253988' @ 253989 : 1]
23:3244179['0000000000253989' @ 253990 : 1 .. '0000000000282209' @ 282210 : 1]
25:3244157['0000000000282210' @ 282211 : 1 .. '0000000000310430' @ 310431 : 1]
27:3244176['0000000000310431' @ 310432 : 1 .. '0000000000338651' @ 338652 : 1]
29:3244156['0000000000338652' @ 338653 : 1 .. '0000000000366872' @ 366873 : 1]
--- level 3 ---
--- level 4 ---
--- level 5 ---
--- level 6 ---
Test Plan: run on test directory created by dbbench
Reviewers: heyongqiang
Reviewed By: heyongqiang
CC: hustliubo
Differential Revision: https://reviews.facebook.net/D4743
12 years ago