From 4e63220f8defba001d812fd337bde949fc71699e Mon Sep 17 00:00:00 2001 From: novikauanton Date: Sat, 22 Jan 2022 23:16:10 +0200 Subject: [PATCH] fix mclagsyncd out of order initialization (#2112) --- mclagsyncd/mclaglink.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/mclagsyncd/mclaglink.h b/mclagsyncd/mclaglink.h index 9c23c97686..801ee19bb0 100644 --- a/mclagsyncd/mclaglink.h +++ b/mclagsyncd/mclaglink.h @@ -187,9 +187,10 @@ namespace swss { typedef std::tuple vlan_mbr; class MclagLink : public Selectable { - + private: - Select *m_select; + const int MSG_BATCH_SIZE; + unsigned int m_bufSize; char *m_messageBuffer; char *m_messageBuffer_send; @@ -200,11 +201,12 @@ namespace swss { int m_server_socket; int m_connection_socket; + Select *m_select; + bool is_iccp_up = false; std::string m_system_mac; std::set m_vlan_mbrship; //set of vlan,mbr tuples - const int MSG_BATCH_SIZE; std::map *p_learn; unique_ptr p_state_db;