[CDRIVER-1196] Make client pool a LIFO Created: 08/Apr/16  Updated: 10/Aug/16  Resolved: 14/Apr/16

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 1.4.0

Type: Improvement Priority: Major - P3
Reporter: A. Jesse Jiryu Davis Assignee: A. Jesse Jiryu Davis
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to CDRIVER-1149 min_pool_size 0 should mean "no minimum" Closed
related to CDRIVER-250 destroy old clients when added back t... Closed

 Description   

The mongoc_client_pool_t is currently a FIFO queue: mongoc_client_pool_push stores the pushed client at the tail of the queue, while mongoc_client_pool_pop removes and returns a client from the head. For cache coherence, transform the pool to a LIFO.



 Comments   
Comment by Githook User [ 14/Apr/16 ]

Author:

{u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}

Message: CDRIVER-1196 make pool a LIFO.

For cache coherence, mongoc_client_pool_pop returns the most recently
used client, not the least recently used.
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/0c8d66e321a174354d3e5bbc98f129dfa32be68a

Generated at Wed Feb 07 21:11:51 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.