From 5b6ee147a64b91e1e77bda42f604653bbdeb622c Mon Sep 17 00:00:00 2001 From: Susan LoVerso Date: Mon, 5 Jan 2015 16:59:34 -0500 Subject: Save a copy of the crashed database directory before running recovery. --- test/format/recover.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/format') 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 -- cgit v1.2.1