Skip to content

Commit

Permalink
clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
ntoorchi committed Mar 18, 2022
1 parent 8f34507 commit 553a58b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion common/dbconnector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ string SonicDBConfig::getDbName(int dbId, const string &netns)
{
if (!m_global_init)
{
SWSS_LOG_THROW("Initialize ggglobal DB config using API SonicDBConfig::initializeGlobalConfig");
SWSS_LOG_THROW("Initialize global DB config using API SonicDBConfig::initializeGlobalConfig");
}
}

Expand All @@ -310,6 +310,7 @@ string SonicDBConfig::getDbName(int dbId, const string &netns)
SWSS_LOG_ERROR("%s", msg.c_str());
throw out_of_range(msg);
}

string db_name;
auto& infos = foundNetns->second;
for ( auto it = infos.begin(); it != infos.end(); ++it ) {
Expand Down

0 comments on commit 553a58b

Please sign in to comment.