Roundup Tracker - Issues

Issue 1463359

classification
errors using MySQL be.
Type: Severity: normal
Components: Database Versions:
process
Status: closed accepted
:
: richard : richard, stefan
Priority: normal :

Created on 2006-04-03 07:19 by stefan, last changed 2006-04-03 07:19 by stefan.

Messages
msg2233 Author: [hidden] (stefan) Date: 2006-04-03 07:19
we have had some problems with the MySQL backend in 
roundup 1.1, where we'd eventually run out of 
connections. The attached patch fixed it for us. 

2006-03-03  Mark Mitchell  <mark@codesourcery.com>

    * roundup/cgi/client.py (Client.determine_user):
Commit changes to
    the database after updating the timestamp.


*************** class Client:
*** 465,474 ****
--- 465,475 ----
              # get the user from the session
              try:
                  # update the lifetime datestamp
                  sessions.updateTimestamp(self.session)
                  user = sessions.get(self.session, 'user')
+                 self.db.commit()
              except KeyError:
                  # not valid, ignore id
                  pass

          # if no user name set by http authorization
or session cookie

History
Date User Action Args
2006-04-03 07:19:54stefancreate