IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 3, 2013, 1:22:47 PM (13 years ago)
Author:
eugene
Message:

add an index to stackdetection; give an error message for failed attempts to kill the mysql connection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/jython/mysql.py

    r33787 r35222  
    8484        connectionID = self.getLastConnectionID()
    8585        if connectionID == self.connectionID:
     86            print "not killing connection: ", connectionID
    8687            self.logger.debug("NOT going to kill THIS connection ID")
    8788            return
    8889
    8990        sql = "KILL %d" % connectionID
    90         self.execute(sql)
     91
     92        try:
     93            self.execute(sql)
     94        except:
     95            print "failed to kill connection: ", connectionID
    9196
    9297    '''
Note: See TracChangeset for help on using the changeset viewer.