summaryrefslogtreecommitdiffstats
path: root/nova/openstack
diff options
context:
space:
mode:
authorRussell Bryant <rbryant@redhat.com>2012-01-31 12:52:16 -0500
committerRussell Bryant <rbryant@redhat.com>2012-01-31 12:56:37 -0500
commitd4d0eedeb43cd0bcb9fd446d0ef9bbcc3b28c68a (patch)
tree789fe46ef814f26f35d7584b1f403bf55573e2d5 /nova/openstack
parent59c0a723cc6d9e0c298d581952bde6853c2288c7 (diff)
downloadnova-d4d0eedeb43cd0bcb9fd446d0ef9bbcc3b28c68a.tar.gz
nova-d4d0eedeb43cd0bcb9fd446d0ef9bbcc3b28c68a.tar.xz
nova-d4d0eedeb43cd0bcb9fd446d0ef9bbcc3b28c68a.zip
Be more explicit about emptying connection pool.
This patch makes some code in test_qpid be more explicit about emptying the connection pool. It now ensures that it removes exactly how many connections are in the pool. The previous code made a couple of assumptions. First, it assumed that only one connection was in the pool (which is true, but it's still nice not to make the assumption here in the cleanup code). Second, it assumed that free() returned the number of connections that have been placed in the pool. This is not correct. The result also includes the number of connections that could be created based on the max size of the pool. Use the free_items attribute instead, which gives the exact number of connections that have been put() in the pool. Change-Id: I97378919c2d3e68f224862f07a75529575647163
Diffstat (limited to 'nova/openstack')
0 files changed, 0 insertions, 0 deletions