Skip to content

Commit

Permalink
fix mclagsyncd out of order initialization (sonic-net#2112)
Browse files Browse the repository at this point in the history
  • Loading branch information
novikauanton authored and bratashX committed May 19, 2022
1 parent f4ecfb6 commit 4e63220
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions mclagsyncd/mclaglink.h
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,10 @@ namespace swss {
typedef std::tuple<std::string, std::string> 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;
Expand All @@ -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<vlan_mbr> m_vlan_mbrship; //set of vlan,mbr tuples

const int MSG_BATCH_SIZE;
std::map<std::string, std:: string> *p_learn;

unique_ptr<DBConnector> p_state_db;
Expand Down

0 comments on commit 4e63220

Please sign in to comment.