mirror of
https://github.com/facebook/rocksdb.git
synced 2024-11-26 16:30:56 +00:00
04d58970cb
Summary: Replacement of #2147 The change was squashed due to a lot of conflicts. Closes https://github.com/facebook/rocksdb/pull/2194 Differential Revision: D4929799 Pulled By: siying fbshipit-source-id: 5cd49c254737a1d5ac13f3c035f128e86524c581
8 lines
336 B
Bash
Executable file
8 lines
336 B
Bash
Executable file
TESTDIR=`mktemp -d ${TMPDIR:-/tmp}/rocksdb-dump-test.XXXXX`
|
|
DUMPFILE="tools/sample-dump.dmp"
|
|
|
|
# Verify that the sample dump file is undumpable and then redumpable.
|
|
./rocksdb_undump --dump_location=$DUMPFILE --db_path=$TESTDIR/db
|
|
./rocksdb_dump --anonymous --db_path=$TESTDIR/db --dump_location=$TESTDIR/dump
|
|
cmp $DUMPFILE $TESTDIR/dump
|