fixed delete segment files
This commit is contained in:
parent
3dc75d5713
commit
cf43e7931d
10
restore.sh
10
restore.sh
|
@ -116,13 +116,13 @@ restore()
|
||||||
LOAD DATA LOCAL INFILE '$segment'
|
LOAD DATA LOCAL INFILE '$segment'
|
||||||
INTO TABLE $TABLE;
|
INTO TABLE $TABLE;
|
||||||
SET foreign_key_checks = 1; SET unique_checks = 1; SET sql_log_bin = 1;"
|
SET foreign_key_checks = 1; SET unique_checks = 1; SET sql_log_bin = 1;"
|
||||||
|
|
||||||
|
if [ -f "$segment" ]; then
|
||||||
|
f_log "Delete segment $segment"
|
||||||
|
rm "$segment"
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ -f "$segment" ]; then
|
|
||||||
f_log "Delete segment $segment"
|
|
||||||
rm "$segment"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ! -f "$DIR/$BDD/$TABLE.txt.bz2" ]; then
|
if [ ! -f "$DIR/$BDD/$TABLE.txt.bz2" ]; then
|
||||||
f_log "> $TABLE"
|
f_log "> $TABLE"
|
||||||
bzip2 $DIR/$BDD/$TABLE.txt
|
bzip2 $DIR/$BDD/$TABLE.txt
|
||||||
|
|
Loading…
Reference in a new issue