[Fusionforge-commits] r14649 - in trunk: . src/plugins/moinmoin/lib

Roland Mas lolando at fusionforge.org
Fri Oct 14 18:07:14 CEST 2011


Author: lolando
Date: 2011-10-14 18:07:13 +0200 (Fri, 14 Oct 2011)
New Revision: 14649

Modified:
   trunk/
   trunk/src/plugins/moinmoin/lib/fusionforge.py
Log:
Do not start transactions when querying the Forge database.


Modified: trunk/src/plugins/moinmoin/lib/fusionforge.py
===================================================================
--- trunk/src/plugins/moinmoin/lib/fusionforge.py	2011-10-14 16:07:05 UTC (rev 14648)
+++ trunk/src/plugins/moinmoin/lib/fusionforge.py	2011-10-14 16:07:13 UTC (rev 14649)
@@ -58,6 +58,11 @@
                                           user=self.database_user,
                                           port=self.database_port,
                                           password=self.database_password)
+
+        # We never want to start transactions, all accesses here are read-only
+        # anyway.
+        self._conn.set_isolation_level \
+          (psycopg2.extensions.ISOLATION_LEVEL_AUTOCOMMIT)
         logging.debug ("FusionForgeLink: __init__ done")
 
     def __del__(self):




More information about the Fusionforge-commits mailing list