mirror of
https://github.com/facebook/rocksdb.git
synced 2024-11-27 02:44:18 +00:00
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
|