]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Updates clear_db() to unregister models and close session.
authorIryoung Jeong <iryoung@gmail.com>
Thu, 15 Nov 2012 06:23:12 +0000 (15:23 +0900)
committerGary Kotton <gkotton@redhat.com>
Fri, 16 Nov 2012 02:27:19 +0000 (02:27 +0000)
commitbf0e73f30018a423a9acc3d8e94cfa8ff299ed10
tree000167dca27768459c30583b256dda41b895e255
parent925b4185f5857621926cb56b1422b1efdb13e7a6
Updates clear_db() to unregister models and close session.

fixes bug 1080988

This change fixes the bug by ensuring the metadata and session objects
are properly cleaned up by clear_db(). Using the proper calls reduces
the memory required by unit tests.

Change-Id: I1d1802b642eff83b7f96211608195afaf68e855a
quantum/db/api.py