mirror of
https://github.com/pgsty/minio.git
synced 2026-07-20 04:30:26 +03:00
Ignore "connection reset" errors while initializing the targets with queue store enabled (#8185)
Fixes #8178
This commit is contained in:
committed by
Harshavardhana
parent
259a5d825b
commit
428836d4e1
@@ -358,7 +358,7 @@ func NewPostgreSQLTarget(id string, args PostgreSQLArgs, doneCh <-chan struct{})
|
||||
|
||||
err = target.db.Ping()
|
||||
if err != nil {
|
||||
if target.store == nil || !IsConnRefusedErr(err) {
|
||||
if target.store == nil || !(IsConnRefusedErr(err) || IsConnResetErr(err)) {
|
||||
return nil, err
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user