From e37bfea64fb9e1f40f7c9b6ad759e92f5f15bec9 Mon Sep 17 00:00:00 2001 From: arista-nwolfe <94405414+arista-nwolfe@users.noreply.github.com> Date: Tue, 11 Jun 2024 20:10:38 -0400 Subject: [PATCH] Don't use unix socket on for redis_chassis.server (#873) --- sonic-db-cli/sonic-db-cli.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sonic-db-cli/sonic-db-cli.cpp b/sonic-db-cli/sonic-db-cli.cpp index 027c810cc..8f9711506 100755 --- a/sonic-db-cli/sonic-db-cli.cpp +++ b/sonic-db-cli/sonic-db-cli.cpp @@ -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(db_id, db_socket, 0); } else { - auto host = SonicDBConfig::getDbHostname(db_name, netns); auto port = SonicDBConfig::getDbPort(db_name, netns); client = make_shared(db_id, host, port, 0); }