Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
adb82a79
Commit
adb82a79
authored
Apr 06, 2007
by
Howard Chu
Browse files
ITS#4915 log retry status
parent
cf117372
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/syncrepl.c
View file @
adb82a79
...
...
@@ -1029,7 +1029,7 @@ do_syncrepl(
int
rc
=
LDAP_SUCCESS
;
int
dostop
=
0
;
ber_socket_t
s
;
int
i
,
defer
=
1
;
int
i
,
defer
=
1
,
fail
=
0
;
Backend
*
be
;
Debug
(
LDAP_DEBUG_TRACE
,
"=>do_syncrepl rid %03d
\n
"
,
si
->
si_rid
,
0
,
0
);
...
...
@@ -1148,18 +1148,36 @@ reload:
if
(
!
si
->
si_retrynum
||
si
->
si_retrynum
[
i
]
==
RETRYNUM_TAIL
)
{
ldap_pvt_runqueue_remove
(
&
slapd_rq
,
rtask
);
fail
=
RETRYNUM_TAIL
;
}
else
if
(
RETRYNUM_VALID
(
si
->
si_retrynum
[
i
]
)
)
{
if
(
si
->
si_retrynum
[
i
]
>
0
)
si
->
si_retrynum
[
i
]
--
;
fail
=
si
->
si_retrynum
;
rtask
->
interval
.
tv_sec
=
si
->
si_retryinterval
[
i
];
ldap_pvt_runqueue_resched
(
&
slapd_rq
,
rtask
,
0
);
slap_wake_listener
();
}
}
ldap_pvt_thread_mutex_unlock
(
&
slapd_rq
.
rq_mutex
);
ldap_pvt_thread_mutex_unlock
(
&
si
->
si_mutex
);
if
(
rc
)
{
if
(
fail
==
RETRYNUM_TAIL
)
{
Debug
(
LDAP_DEBUG_ANY
,
"do_syncrepl: rid %03d quitting
\n
"
,
si
->
si_rid
,
0
,
0
);
}
else
if
(
fail
>
0
)
{
Debug
(
LDAP_DEBUG_ANY
,
"do_syncrepl: rid %03d retrying (%d retries left)
\n
"
,
si
->
si_rid
,
fail
,
0
);
}
else
{
Debug
(
LDAP_DEBUG_ANY
,
"do_syncrepl: rid %03d retrying
\n
"
,
si
->
si_rid
,
0
,
0
);
}
}
return
NULL
;
}
...
...
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