Skip to content

Commit

Permalink
Fix merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
ganglyu committed Dec 16, 2023
1 parent 5cc302f commit e840963
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sonic_data_client/virtual_db.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func getPfcwdMap() (map[string]map[string]string, error) {
return nil, err
}

keyName := fmt.Sprintf("PFC_WD_TABLE%v*", separator)
keyName := fmt.Sprintf("PFC_WD%v*", separator)
resp, err := redisDb.Keys(keyName).Result()
if err != nil {
log.V(1).Infof("redis get keys failed for %v in namsepace %v, key = %v, err: %v", dbName, namespace, keyName, err)
Expand All @@ -149,7 +149,7 @@ func getPfcwdMap() (map[string]map[string]string, error) {
}

for _, key := range resp {
name := key[13:]
name := key[7:]
pfcwdName_map[name] = make(map[string]string)
}

Expand Down
1 change: 1 addition & 0 deletions sonic_db_config/db_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const (

var sonic_db_init bool

// Convert exception to error
func CatchException(err *error) {
if r := recover(); r != nil {
*err = fmt.Errorf("%v", r)
Expand Down

0 comments on commit e840963

Please sign in to comment.