mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Fix recovering state GTID in case log file contains non-text bytes -
use grep with -a option. Signed-off-by: Julius Goryavsky <julius.goryavsky@mariadb.com>
This commit is contained in:
committed by
Julius Goryavsky
parent
54a10a4293
commit
69c6cb5dc4
@@ -260,9 +260,9 @@ wsrep_recover_position() {
|
||||
exit 1
|
||||
fi
|
||||
|
||||
local rp="$(grep 'WSREP: Recovered position:' $wr_logfile)"
|
||||
local rp="$(grep -a 'WSREP: Recovered position:' $wr_logfile)"
|
||||
if [ -z "$rp" ]; then
|
||||
local skipped="$(grep WSREP $wr_logfile | grep 'skipping position recovery')"
|
||||
local skipped="$(grep -a WSREP $wr_logfile | grep 'skipping position recovery')"
|
||||
if [ -z "$skipped" ]; then
|
||||
log_error "WSREP: Failed to recover position: '`cat $wr_logfile`'"
|
||||
ret=1
|
||||
|
Reference in New Issue
Block a user