Skip to content

Commit

Permalink
Initialize CounterCheckOrch with port information after QueueMaps ini…
Browse files Browse the repository at this point in the history
…tialization (sonic-net#528)

* Pospone QueueMap initialization until activation of counters

* Initialize CounterCheckOrch after we initialized the QueueMaps
  • Loading branch information
pavel-shirshov authored Jun 29, 2018
1 parent 258ffe6 commit 90ea7a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions orchagent/portsorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1888,8 +1888,6 @@ bool PortsOrch::initializePort(Port &p)
vector.push_back(tuple);
m_portTable->set(p.m_alias, vector);

CounterCheckOrch::getInstance().addPort(p);

return true;
}

Expand Down Expand Up @@ -2426,6 +2424,8 @@ void PortsOrch::generateQueueMapPerPort(const Port& port)
m_queuePortTable->set("", queuePortVector);
m_queueIndexTable->set("", queueIndexVector);
m_queueTypeTable->set("", queueTypeVector);

CounterCheckOrch::getInstance().addPort(port);
}

void PortsOrch::doTask(NotificationConsumer &consumer)
Expand Down

0 comments on commit 90ea7a4

Please sign in to comment.