From 5fc1e6765a595d0aacd761f106f6d63ca9d0989d Mon Sep 17 00:00:00 2001 From: Aaron Gao Date: Fri, 31 Mar 2017 11:58:51 -0700 Subject: [PATCH] add -rf when remove db in regression test Summary: force remove db dir when rebuilding Closes https://github.com/facebook/rocksdb/pull/2067 Differential Revision: D4811926 Pulled By: lightmark fbshipit-source-id: ab068a2 --- tools/regression_test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/regression_test.sh b/tools/regression_test.sh index b9af153cd..96cb07d86 100755 --- a/tools/regression_test.sh +++ b/tools/regression_test.sh @@ -131,7 +131,7 @@ function main { run_db_bench "fillseqdeterministic" $NUM_KEYS 1 0 elif [[ ! -d $DB_PATH ]] || [[ "$(( $(date +"%s") - $(stat -c "%Y" $DB_PATH) ))" -gt "604800" ]]; then echo "Rebuilding DB..." - rm $DB_PATH + rm -rf $DB_PATH run_db_bench "fillseqdeterministic" $NUM_KEYS 1 0 fi DB_PATH=$tmp