Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Vladimir Barsukov
zdb
Commits
c4bb24dc
Commit
c4bb24dc
authored
May 21, 2023
by
Vladimir Barsukov
Browse files
save
parent
a1ea14ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
pool.go
View file @
c4bb24dc
...
...
@@ -144,7 +144,7 @@ func (d *Pool) execWrapper(pool connMode, dst any, f func(conn *conn, dst1 any)
q
=
d
.
async
()
}
rep
i
t
:
rep
ea
t
:
if
err
:=
f
(
q
,
dst
);
err
!=
nil
{
if
q
.
Mode
==
ConnModeMaster
{
return
err
...
...
@@ -152,12 +152,12 @@ func (d *Pool) execWrapper(pool connMode, dst any, f func(conn *conn, dst1 any)
if
try
<
d
.
TryOnError
&&
contains
(
err
.
Error
(),
d
.
ContinuesTry
)
{
try
++
goto
rep
i
t
goto
rep
ea
t
}
if
contains
(
err
.
Error
(),
d
.
Continues
)
{
d
.
logger
.
Printf
(
"DB_EXEC_WRAPPER_ERR: %s"
,
err
.
Error
())
d
.
setNotAliveConn
(
q
)
d
.
logger
.
Printf
(
"DB_EXEC_WRAPPER_ERR: %s"
,
err
.
Error
())
continue
}
else
{
return
err
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment