Skip to content

Commit

Permalink
MDEV-4728: local merge from maria-5.5-galera.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nirbhay Choubey committed Jul 15, 2014
1 parent b77fc5a commit eaa0fe7
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions scripts/mysqld_safe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,19 @@ wsrep_recover_position() {

local wr_logfile=$(mktemp $DATADIR/wsrep_recovery.XXXXXX)

[ "$euid" = "0" ] && chown $user $wr_logfile
chmod 600 $wr_logfile
# safety checks
if [ -z $wr_logfile ]; then
log_error "WSREP: mktemp failed"
return 1
fi

if [ -f $wr_logfile ]; then
[ "$euid" = "0" ] && chown $user $wr_logfile
chmod 600 $wr_logfile
else
log_error "WSREP: mktemp failed"
return 1
fi

local wr_pidfile="$DATADIR/"`@HOSTNAME@`"-recover.pid"

Expand Down

0 comments on commit eaa0fe7

Please sign in to comment.