Skip to content

Commit

Permalink
Don't use unix socket on for redis_chassis.server (sonic-net#873)
Browse files Browse the repository at this point in the history
  • Loading branch information
arista-nwolfe authored Jun 12, 2024
1 parent 391e27b commit e37bfea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sonic-db-cli/sonic-db-cli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,14 +139,14 @@ int executeCommands(
try
{
int db_id = SonicDBConfig::getDbId(db_name, netns);
if (useUnixSocket)
auto host = SonicDBConfig::getDbHostname(db_name, netns);
if (useUnixSocket && host != "redis_chassis.server")
{
auto db_socket = SonicDBConfig::getDbSock(db_name, netns);
client = make_shared<DBConnector>(db_id, db_socket, 0);
}
else
{
auto host = SonicDBConfig::getDbHostname(db_name, netns);
auto port = SonicDBConfig::getDbPort(db_name, netns);
client = make_shared<DBConnector>(db_id, host, port, 0);
}
Expand Down

0 comments on commit e37bfea

Please sign in to comment.