#!/bin/bash
IS_THERE_A_CANDIDATE=$(/usr/bin/sqlite3 /usr/local/orchestrator/orchestrator.sqlite3 -list "select count(*) from database_instance where master_host!='' and exec_master_log_pos in (select binary_log_pos from database_instance where master_host='');")
if [[ $IS_THERE_A_CANDIDATE = 0 ]]; then
echo "There is no candidate " >> /usr/local/appian/orchestrator/logs/orchestrator-recovery.log
exit -1
fi
--
You received this message because you are subscribed to the Google Groups "orchestrator-mysql" group.
To unsubscribe from this group and stop receiving emails from it, send an email to orchestrator-my...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/orchestrator-mysql/79595a48-60e1-4a7a-ab31-f0005d3a3737n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/orchestrator-mysql/93d6e5de-5789-4945-90f0-7edf483656d4n%40googlegroups.com.