15325bf55b
Summary: Hack up rocksdb_dump and rocksdb_undump utilities to get this task rolling/promote discussion. Test Plan: Dump/undump databases recursively to see if nothing is lost. Reviewers: sdong, yhchiang, rven, anthony, kradhakrishnan, igor Reviewed By: igor Subscribers: dhruba Differential Revision: https://reviews.facebook.net/D37269
8 lines
273 B
Bash
Executable File
8 lines
273 B
Bash
Executable File
TESTDIR=`mktemp -d /tmp/rocksdb-dump-test.XXXXX`
|
|
DUMPFILE="tools/sample-dump.dmp"
|
|
|
|
# Verify that the sample dump file is undumpable and then redumpable.
|
|
./rocksdb_undump $DUMPFILE $TESTDIR/db
|
|
./rocksdb_dump --anonymous $TESTDIR/db $TESTDIR/dump
|
|
cmp $DUMPFILE $TESTDIR/dump
|