Skip to content

Commit

Permalink
[MultiDB] fix wrong MultiDB APIs usage in mclags (sonic-net#1290)
Browse files Browse the repository at this point in the history
  • Loading branch information
dzhangalibaba authored May 13, 2020
1 parent cdffff3 commit 0e0f039
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mclagsyncd/mclagsyncd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ using namespace swss;
int main(int argc, char **argv)
{
swss::Logger::linkToDbNative("mclagsyncd");
DBConnector appl_db(APPL_DB, DBConnector::DEFAULT_UNIXSOCKET, 0);
DBConnector asic_db(ASIC_DB, DBConnector::DEFAULT_UNIXSOCKET, 0);
DBConnector counters_db(COUNTERS_DB, DBConnector::DEFAULT_UNIXSOCKET, 0);
DBConnector appl_db("APPL_DB", 0);
DBConnector asic_db("ASIC_DB", 0);
DBConnector counters_db("COUNTERS_DB", 0);
ProducerStateTable port_tbl(&appl_db, APP_PORT_TABLE_NAME);
ProducerStateTable lag_tbl(&appl_db, APP_LAG_TABLE_NAME);
ProducerStateTable tnl_tbl(&appl_db, APP_VXLAN_TUNNEL_TABLE_NAME);
Expand Down

0 comments on commit 0e0f039

Please sign in to comment.