Skip to content

Commit

Permalink
Merge branch 'sonic-net:master' into bookworm_migration_sonic_gnmi
Browse files Browse the repository at this point in the history
  • Loading branch information
ranjinidn authored Apr 9, 2024
2 parents 6d6a0ac + 6b63a50 commit d0598f7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sonic_data_client/mixed_db_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ func NewMixedDbClient(paths []*gnmipb.Path, prefix *gnmipb.Path, origin string,
// If target is DPU_APPL_DB, this is multiple database, create DB connector for DPU
// If target is original APPL_DB, create DB connector for backward compatibility
if target == DPU_APPL_DB_NAME || target == APPL_DB_NAME {
client.applDB = swsscommon.NewDBConnector(target, SWSS_TIMEOUT, false)
client.applDB = swsscommon.NewDBConnector(target, SWSS_TIMEOUT, false, dbkey)
}
client.target = target
client.dbkey = dbkey
Expand Down
4 changes: 2 additions & 2 deletions sonic_db_config/db_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ func TestGetDbMultiInstance(t *testing.T) {
})
t.Run("Sock", func(t *testing.T) {
sock_path, _ := GetDbSockByDBKey("CONFIG_DB", dbkey)
if sock_path != "/var/run/redis0/redis.sock" {
t.Fatalf(`Sock("") = %q, want "/var/run/redis0/redis.sock", error`, sock_path)
if sock_path != "/var/run/redis/redis.sock" {
t.Fatalf(`Sock("") = %q, want "/var/run/redis/redis.sock", error`, sock_path)
}
})
t.Run("AllInstances", func(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion testdata/database_config_dpu.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"redis":{
"hostname" : "127.0.0.1",
"port" : 6379,
"unix_socket_path" : "/var/run/redis0/redis.sock"
"unix_socket_path" : "/var/run/redis/redis.sock"
}
},
"DATABASES" : {
Expand Down

0 comments on commit d0598f7

Please sign in to comment.