Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ingo Voss
OpenLDAP
Commits
faa13725
Commit
faa13725
authored
Sep 01, 2006
by
Pierangelo Masarati
Browse files
remove unnecessary assertion; add test for pending ops
parent
cb3248f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/connection.c
View file @
faa13725
...
...
@@ -857,16 +857,15 @@ connection_close( Connection *c )
ber_sockbuf_ctrl
(
c
->
c_sb
,
LBER_SB_OPT_GET_FD
,
&
sd
);
}
if
(
!
LDAP_STAILQ_EMPTY
(
&
c
->
c_ops
)
)
{
if
(
!
LDAP_STAILQ_EMPTY
(
&
c
->
c_ops
)
||
!
LDAP_STAILQ_EMPTY
(
&
c
->
c_pending_ops
)
)
{
Debug
(
LDAP_DEBUG_TRACE
,
"connection_close: deferring conn=%lu sd=%d
\n
"
,
c
->
c_connid
,
sd
,
0
);
return
;
}
/* NOTE: if there's no pending ops, writewaiter must be 0 (ITS#4659) */
assert
(
c
->
c_writewaiter
==
0
);
Debug
(
LDAP_DEBUG_TRACE
,
"connection_close: conn=%lu sd=%d
\n
"
,
c
->
c_connid
,
sd
,
0
);
...
...
@@ -1158,6 +1157,7 @@ operations_error:
op
->
o_cancel
=
LDAP_TOO_LATE
;
}
}
while
(
op
->
o_cancel
!=
SLAP_CANCEL_NONE
&&
op
->
o_cancel
!=
SLAP_CANCEL_DONE
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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