Mariadb: Add logging output to wsrep-recover on startup
This PS adds logging output to the wsrep-recover function in the mariadb startup script. Change-Id: I98ea214852a0b54440b1ceeea363017397afcb52 Signed-off-by: Pete Birley <pete@port.direct>
This commit is contained in:
parent
8673bdda53
commit
4031db390c
@ -503,6 +503,8 @@ def update_grastate_on_restart():
|
||||
stderr=subprocess.PIPE)
|
||||
out, err = wsrep_recover.communicate()
|
||||
for item in err.split("\n"):
|
||||
logger.info(
|
||||
"Recovering wsrep position: {0}".format(item))
|
||||
if "WSREP: Recovered position:" in item:
|
||||
line = item.strip().split()
|
||||
wsrep_rec_pos = line[-1].split(':')[-1]
|
||||
|
Loading…
Reference in New Issue
Block a user