@@ -1448,13 +1448,13 @@ void FlexCounter::collectBufferPoolCounters(
14481448}
14491449
14501450void FlexCounter::runPlugins (
1451- _In_ swss::DBConnector& db )
1451+ _In_ swss::DBConnector& counters_db )
14521452{
14531453 SWSS_LOG_ENTER ();
14541454
14551455 const std::vector<std::string> argv =
14561456 {
1457- std::to_string (COUNTERS_DB), // TODO
1457+ std::to_string (counters_db. getDbId ()),
14581458 COUNTERS_TABLE,
14591459 std::to_string (m_pollInterval * 1000 )
14601460 };
@@ -1470,7 +1470,7 @@ void FlexCounter::runPlugins(
14701470
14711471 for (const auto & sha : m_portPlugins)
14721472 {
1473- runRedisScript (db , sha, portList, argv);
1473+ runRedisScript (counters_db , sha, portList, argv);
14741474 }
14751475
14761476 std::vector<std::string> queueList;
@@ -1484,7 +1484,7 @@ void FlexCounter::runPlugins(
14841484
14851485 for (const auto & sha : m_queuePlugins)
14861486 {
1487- runRedisScript (db , sha, queueList, argv);
1487+ runRedisScript (counters_db , sha, queueList, argv);
14881488 }
14891489
14901490 std::vector<std::string> priorityGroupList;
@@ -1498,7 +1498,7 @@ void FlexCounter::runPlugins(
14981498
14991499 for (const auto & sha : m_priorityGroupPlugins)
15001500 {
1501- runRedisScript (db , sha, priorityGroupList, argv);
1501+ runRedisScript (counters_db , sha, priorityGroupList, argv);
15021502 }
15031503
15041504 std::vector<std::string> bufferPoolVids;
@@ -1512,7 +1512,7 @@ void FlexCounter::runPlugins(
15121512
15131513 for (const auto & sha : m_bufferPoolPlugins)
15141514 {
1515- runRedisScript (db , sha, bufferPoolVids, argv);
1515+ runRedisScript (counters_db , sha, bufferPoolVids, argv);
15161516 }
15171517}
15181518
0 commit comments