]> arthur.barton.de Git - netdata.git/commitdiff
Remove commented code.
authorFacetoe <facetoe@facetoe.com.au>
Sun, 23 Oct 2016 09:52:41 +0000 (17:52 +0800)
committerFacetoe <facetoe@facetoe.com.au>
Sun, 23 Oct 2016 09:57:49 +0000 (17:57 +0800)
python.d/postgres.chart.py

index 345a532245a14af75d29b7f14d9684be9edafc3f..9c0e608a849396b761435c7172cd27dab81e5c29 100644 (file)
@@ -119,15 +119,6 @@ FROM (
 ) AS s;
 """
 
-# LOCK_MAP = {'AccessExclusiveLock': 'lock_access_exclusive',
-#             'AccessShareLock': 'lock_access_share',
-#             'ExclusiveLock': 'lock_exclusive',
-#             'RowExclusiveLock': 'lock_row_exclusive',
-#             'RowShareLock': 'lock_row_share',
-#             'ShareUpdateExclusiveLock': 'lock_update_exclusive_lock',
-#             'ShareLock': 'lock_share',
-#             'ShareRowExclusiveLock': 'lock_share_row_exclusive',
-#             'SIReadLock': 'lock_si_read'}
 LOCK_TYPES = [
     'ExclusiveLock',
     'RowShareLock',
@@ -263,6 +254,7 @@ class Service(SimpleService):
         try:
             self.connect()
             self.discover_databases()
+            self.connection.close()
             self._create_definitions()
             return True
         except Exception as e: