Skip to content

Commit

Permalink
Add the new parameter "namespace" added to DBConnector::DBConnector i…
Browse files Browse the repository at this point in the history
…n sonic-swss-common repo.
  • Loading branch information
judyjoseph committed Jul 24, 2020
1 parent a9479e6 commit 170d2b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/mock_tests/mock_dbconnector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ namespace swss
m_conn->fd = socket(AF_UNIX, SOCK_DGRAM, 0);
}

DBConnector::DBConnector(const std::string& dbName, unsigned int timeout, bool isTcpConn)
DBConnector::DBConnector(const std::string& dbName, unsigned int timeout, bool isTcpConn, const std::string& nameSpace)
: m_dbName(dbName)
, m_namespace(nameSpace)
{
if (swss::SonicDBConfig::isInit() == false)
swss::SonicDBConfig::initialize("./database_config.json");
Expand Down

0 comments on commit 170d2b8

Please sign in to comment.