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
Joe Martin
OpenLDAP
Commits
e65cd387
Commit
e65cd387
authored
May 10, 2017
by
Ondřej Kuzník
Committed by
Ondřej Kuzník
Nov 17, 2020
Browse files
Round-robin for upstream connections
parent
58a880bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/lloadd/backend.c
View file @
e65cd387
...
...
@@ -128,9 +128,16 @@ backend_select( Operation *op )
"selected connection %lu for client %lu msgid=%d
\n
"
,
c
->
c_connid
,
op
->
o_client_connid
,
op
->
o_client_msgid
);
/*
* Round-robin step:
* Rotate the queue to put this connection at the end.
*/
LDAP_CIRCLEQ_MAKE_TAIL
(
head
,
c
,
c_next
);
b
->
b_n_ops_executing
++
;
c
->
c_n_ops_executing
++
;
CONNECTION_UNLOCK_INCREF
(
c
);
ldap_pvt_thread_mutex_unlock
(
&
b
->
b_mutex
);
return
c
;
}
...
...
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