@@ -1448,13 +1448,13 @@ void FlexCounter::collectBufferPoolCounters(
1448
1448
}
1449
1449
1450
1450
void FlexCounter::runPlugins (
1451
- _In_ swss::DBConnector& db )
1451
+ _In_ swss::DBConnector& counters_db )
1452
1452
{
1453
1453
SWSS_LOG_ENTER ();
1454
1454
1455
1455
const std::vector<std::string> argv =
1456
1456
{
1457
- std::to_string (COUNTERS_DB), // TODO
1457
+ std::to_string (counters_db. getDbId ()),
1458
1458
COUNTERS_TABLE,
1459
1459
std::to_string (m_pollInterval * 1000 )
1460
1460
};
@@ -1470,7 +1470,7 @@ void FlexCounter::runPlugins(
1470
1470
1471
1471
for (const auto & sha : m_portPlugins)
1472
1472
{
1473
- runRedisScript (db , sha, portList, argv);
1473
+ runRedisScript (counters_db , sha, portList, argv);
1474
1474
}
1475
1475
1476
1476
std::vector<std::string> queueList;
@@ -1484,7 +1484,7 @@ void FlexCounter::runPlugins(
1484
1484
1485
1485
for (const auto & sha : m_queuePlugins)
1486
1486
{
1487
- runRedisScript (db , sha, queueList, argv);
1487
+ runRedisScript (counters_db , sha, queueList, argv);
1488
1488
}
1489
1489
1490
1490
std::vector<std::string> priorityGroupList;
@@ -1498,7 +1498,7 @@ void FlexCounter::runPlugins(
1498
1498
1499
1499
for (const auto & sha : m_priorityGroupPlugins)
1500
1500
{
1501
- runRedisScript (db , sha, priorityGroupList, argv);
1501
+ runRedisScript (counters_db , sha, priorityGroupList, argv);
1502
1502
}
1503
1503
1504
1504
std::vector<std::string> bufferPoolVids;
@@ -1512,7 +1512,7 @@ void FlexCounter::runPlugins(
1512
1512
1513
1513
for (const auto & sha : m_bufferPoolPlugins)
1514
1514
{
1515
- runRedisScript (db , sha, bufferPoolVids, argv);
1515
+ runRedisScript (counters_db , sha, bufferPoolVids, argv);
1516
1516
}
1517
1517
}
1518
1518
0 commit comments