invirt.database.clear_cache should actually do something
authorEvan Broder <broder@mit.edu>
Sun, 19 Oct 2008 06:02:50 +0000 (02:02 -0400)
committerEvan Broder <broder@mit.edu>
Sun, 19 Oct 2008 06:02:50 +0000 (02:02 -0400)
svn path=/trunk/packages/sipb-xen-database/; revision=1136

debian/changelog
python/database/models.py

index 63672c2..0482b1e 100644 (file)
@@ -1,3 +1,9 @@
+sipb-xen-database (10.32) unstable; urgency=low
+
+  * invirt.database.clear_cache should actually do something
+
+ -- Evan Broder <broder@mit.edu>  Sun, 19 Oct 2008 02:02:37 -0400
+
 sipb-xen-database (10.31) unstable; urgency=low
 
   * Database-managed VMs should never even think about bridging
index 67d5de8..df3707f 100644 (file)
@@ -119,10 +119,7 @@ session.mapper(CDROM, cdroms_table)
 session.mapper(Autoinstall, autoinstalls_table)
 
 def clear_cache():
-    """Clear sqlalchemy's cache.
+    """Clear sqlalchemy's cache
+    """
 
-    This _seems_ to be the way; it works, but the docs don't mention
-    it.  Why is this so obscure?"""
-
-    # XXX maybe we still need to do this, but it's not doc'd how.
-    #ctx.registry.clear()
+    session.clear()