From: Evan Broder Date: Fri, 3 Oct 2008 23:26:58 +0000 (-0400) Subject: The database wants to be not transactional, and not autoflushing X-Git-Tag: sipb-xen-database/10.26.1^0 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-database.git/commitdiff_plain/95861a2faf8ff0edd2e834c70180cabf4b4a9359 The database wants to be not transactional, and not autoflushing svn path=/trunk/packages/sipb-xen-database/; revision=1014 --- diff --git a/debian/changelog b/debian/changelog index 63d7940..689b6e1 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +sipb-xen-database (10.26.1) unstable; urgency=low + + * We want autoflush off, too + + -- Evan Broder Fri, 03 Oct 2008 19:22:12 -0400 + sipb-xen-database (10.26) unstable; urgency=low * Disable transactions by default diff --git a/python/database/models.py b/python/database/models.py index 6ba0446..67d5de8 100644 --- a/python/database/models.py +++ b/python/database/models.py @@ -26,7 +26,7 @@ __all__ = ['meta', ] meta = ThreadLocalMetaData() -session = orm.scoped_session(orm.sessionmaker(transactional=False)) +session = orm.scoped_session(orm.sessionmaker(transactional=False, autoflush=False)) machine_table = Table('machines', meta, Column('machine_id', Integer, primary_key=True, nullable=False),