Skip to content

Commit

Permalink
START SLAVE 오류시 무한 루프가 되지 않게 수정함
Browse files Browse the repository at this point in the history
  • Loading branch information
YeeYoungHan committed Aug 26, 2019
1 parent bc67e0e commit ffa55d9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion MySQLSlaveOverWatcher/MySQLSlaveOverWatcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ bool CheckSlave( CDbMySQLConnection & clsDB )

clsDB.Execute( "STOP SLAVE" );
clsDB.Execute( "SET GLOBAL SQL_SLAVE_SKIP_COUNTER = 1" );
clsDB.Execute( "START SLAVE" );

// START SLAVE 오류인 경우에는 SLAVE 로 동작할 수 없는 환경이므로 loop 에서 빠져나간다.
if( clsDB.Execute( "START SLAVE" ) == false ) break;

MiliSleep( gclsSetup.m_iDbReWatchPeriod );
}
Expand Down

0 comments on commit ffa55d9

Please sign in to comment.