diff options
author | Susan LoVerso <sue@wiredtiger.com> | 2015-01-05 16:59:34 -0500 |
---|---|---|
committer | Susan LoVerso <sue@wiredtiger.com> | 2015-01-05 16:59:34 -0500 |
commit | 5b6ee147a64b91e1e77bda42f604653bbdeb622c (patch) | |
tree | cd4715a4f632ad94d6b317142f76113079741ca8 /test/format | |
parent | 9e128b7f0b9f2c90c930b2fdbf294b85ab8fceed (diff) | |
download | mongo-5b6ee147a64b91e1e77bda42f604653bbdeb622c.tar.gz |
Save a copy of the crashed database directory before running recovery.
Diffstat (limited to 'test/format')
-rw-r--r-- | test/format/recover.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/format/recover.sh b/test/format/recover.sh index a5c114aaa51..391da3c85fb 100644 --- a/test/format/recover.sh +++ b/test/format/recover.sh @@ -18,6 +18,7 @@ config= # Assumes we're running in build_*/test/format directory. tcmd=./t wtcmd=../../wt +rundir2=RUNDIR.SAVE count=0 while true; do count=`expr $count + 1` @@ -30,11 +31,14 @@ while true; do echo "recovery test: $count of $runs" fi + rm -rf $rundir2 $tcmd $config -q abort=1 logging=1 timer=$timer uri='file:wt' if `$wtcmd -h RUNDIR list | egrep table > /dev/null`; then uri='table:wt' fi + # Save a copy of the database directory exactly as it was at the crash. + cp -rp RUNDIR $rundir2 $wtcmd -h RUNDIR verify $uri || exit 1 done |