You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: phxbinlogsvr/core/monitor/agent_monitor.cpp
+6-9Lines changed: 6 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,6 @@
8
8
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
9
9
*/
10
10
11
-
12
11
#include"agent_monitor.h"
13
12
14
13
#include"event_manager.h"
@@ -143,9 +142,11 @@ int AgentMonitor::Process() {
143
142
MasterMonitor::CheckMySqlUserInfo(option_);
144
143
uint32_t now = time(NULL);
145
144
if (check_master && now - last_check >= option_->GetBinLogSvrConfig()->GetMonitorCheckStatusPeriod()) {
146
-
CheckMasterTimeOut();
145
+
int ret = CheckMasterTimeOut();
147
146
CheckCheckPointFiles();
148
-
last_check = now;
147
+
if(ret == 0) {
148
+
last_check = now;
149
+
}
149
150
}
150
151
}
151
152
return OK;
@@ -266,7 +267,7 @@ int AgentMonitor::CheckMasterInit() {
266
267
vector < string > gtid_list;
267
268
int ret = MasterMonitor::GetMySQLMaxGTIDList(option_, >id_list);
Copy file name to clipboardExpand all lines: phxbinlogsvr/core/storage/event_uuid_handler.cpp
+14-2Lines changed: 14 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,6 @@
8
8
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
0 commit comments