[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: |
|
||||||||||||
| 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: For cache coherence, mongoc_client_pool_pop returns the most recently |