diff options
author | Michael Cahill <michael.cahill@wiredtiger.com> | 2015-02-17 21:18:41 +1100 |
---|---|---|
committer | Michael Cahill <michael.cahill@wiredtiger.com> | 2015-02-17 21:18:41 +1100 |
commit | a9de0f7ac8ad373d7aef6a480c69a2a7e0b55c59 (patch) | |
tree | 1ca7f134bed2af50aac4d941a1fa4a4221be841e /test/format/recover.sh | |
parent | 0c9c6b007b0b721f40f7845bcb371a5292ccaf15 (diff) | |
download | mongo-a9de0f7ac8ad373d7aef6a480c69a2a7e0b55c59.tar.gz |
Run recovery after crashing test/format in the recovery test.
Diffstat (limited to 'test/format/recover.sh')
-rw-r--r-- | test/format/recover.sh | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/test/format/recover.sh b/test/format/recover.sh index b64f491d6a6..de908c71e5d 100644 --- a/test/format/recover.sh +++ b/test/format/recover.sh @@ -34,12 +34,15 @@ while true; do 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 + + # We aborted, so recovery is required + if `$wtcmd -R -h RUNDIR list | egrep table > /dev/null`; then + uri='table:wt' + else + uri='file:wt' + fi # Force recovery to run. $wtcmd -R -h RUNDIR verify $uri || exit 1 done |