mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-05-28 04:35:57 -04:00
ITS#10510 lloadd: correct c_restricted(_inflight) tracking
This commit is contained in:
parent
162fd1968b
commit
596f200125
1 changed files with 3 additions and 1 deletions
|
|
@ -691,15 +691,17 @@ client_reset( LloadConnection *c )
|
|||
if ( restricted && restricted < LLOAD_OP_RESTRICTED_ISOLATE ) {
|
||||
if ( c->c_backend ) {
|
||||
assert( c->c_restricted <= LLOAD_OP_RESTRICTED_BACKEND );
|
||||
assert( c->c_restricted_inflight == 0 );
|
||||
assert( c->c_restricted_inflight <= executing );
|
||||
c->c_backend = NULL;
|
||||
c->c_restricted_at = 0;
|
||||
c->c_restricted_inflight = 0;
|
||||
} else {
|
||||
assert( c->c_restricted == LLOAD_OP_RESTRICTED_UPSTREAM );
|
||||
assert( c->c_linked_upstream != NULL );
|
||||
linked_upstream = c->c_linked_upstream;
|
||||
c->c_linked_upstream = NULL;
|
||||
}
|
||||
c->c_restricted = LLOAD_OP_NOT_RESTRICTED;
|
||||
}
|
||||
CONNECTION_UNLOCK(c);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue