1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00
This commit is contained in:
Brave Galera Crew
2019-01-23 15:30:00 +04:00
committed by Sergey Vojtovich
parent 382115b992
commit 36a2a185fe
791 changed files with 28035 additions and 8865 deletions

View File

@ -265,7 +265,16 @@ wsrep_recover_position() {
wsrep_start_position_opt="--wsrep_start_position=$start_pos"
fi
[ $ret -eq 0 ] && rm $wr_logfile
if [ $ret -eq 0 ] ; then
local wr_logfile_permanent="$DATADIR/wsrep_recovery.ok"
else
local wr_logfile_permanent="$DATADIR/wsrep_recovery.fail"
fi
touch $wr_logfile_permanent
[ "$euid" = "0" ] && chown $user $wr_logfile_permanent
chmod 600 $wr_logfile_permanent
cat "$wr_logfile" >> $wr_logfile_permanent
rm -f "$wr_logfile"
return $ret
}