Commit e65cd387 authored by Ondřej Kuzník's avatar Ondřej Kuzník Committed by Ondřej Kuzník
Browse files

Round-robin for upstream connections

parent 58a880bc
......@@ -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 );
ldap_pvt_thread_mutex_unlock( &b->b_mutex );
return c;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment