Stop and start the database before the index creation
authorgdiez <>
Thu, 17 Mar 2005 16:34:59 +0000 (16:34 +0000)
committergdiez <>
Thu, 17 Mar 2005 16:34:59 +0000 (16:34 +0000)
org.glite.deployment.lb/CHANGELOG
org.glite.deployment.lb/config/scripts/glite-lb-config.py

index 54eb7c9..2e19279 100644 (file)
@@ -1,3 +1,6 @@
+DATE: 09-03-2005 17:33\r
+[gdiez] Stopping and starting the database before the index creation (just after the database is created and the user granted)\r
+\r
 DATE: 09-03-2005 23:05\r
 [dimeglio] Moved creation of indices inside database creation (if database\r
                   exists indices are not recreated)\r
index 27e32e0..8c8d936 100644 (file)
@@ -246,6 +246,11 @@ python %s-config [OPTION...]""" % (self.name, os.environ['GLITE_LOCATION'], \
             file.close()
             os.system('/usr/bin/mysql < /tmp/mysql_ct')
             os.system('/bin/rm /tmp/mysql_ct')
+            
+            #Starting and stopping the database before the index creation
+            self.mysql.stop()
+            time.sleep(5)
+            self.mysql.start()
 
             #Creating the indexes
             print 'Creating the index configuration file %s/etc/glite-lb-index.conf            ' % os.environ['GLITE_LOCATION'],