Skip to content

Commit

Permalink
wg
Browse files Browse the repository at this point in the history
Signed-off-by: Hiranmoy Das Chowdhury <[email protected]>
  • Loading branch information
HiranmoyChowdhury committed May 17, 2024
1 parent 46523bf commit 5aeac9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pgbouncer/kubedb_client_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,10 +229,10 @@ func (l *XormClientList) addXormClient(kc client.Client, pb *api.PgBouncer, ctx
xormClient, err := NewKubeDBClientBuilder(kc, pb).WithContext(ctx).WithDatabaseRef(&pb.Spec.Database).WithPod(podName).WithAuth(auth).WithBackendDBType(dbType).WithPostgresDBName(dbName).GetPgBouncerXormClient()
l.Mutex.Lock()
defer l.Mutex.Unlock()
defer l.WG.Done()
if err != nil {
klog.V(5).ErrorS(err, fmt.Sprintf("failed to create xorm client for pgbouncer %s/%s ", pb.Namespace, pb.Name))
} else {
l.List = append(l.List, xormClient)
}
l.WG.Done()
}

0 comments on commit 5aeac9e

Please sign in to comment.