From 909be193287d77a00ea8c6ca228319e843c3fdcb Mon Sep 17 00:00:00 2001 From: gdiez <> Date: Thu, 17 Mar 2005 16:34:59 +0000 Subject: [PATCH] Stop and start the database before the index creation --- org.glite.deployment.lb/CHANGELOG | 3 +++ org.glite.deployment.lb/config/scripts/glite-lb-config.py | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/org.glite.deployment.lb/CHANGELOG b/org.glite.deployment.lb/CHANGELOG index 54eb7c9..2e19279 100644 --- a/org.glite.deployment.lb/CHANGELOG +++ b/org.glite.deployment.lb/CHANGELOG @@ -1,3 +1,6 @@ +DATE: 09-03-2005 17:33 +[gdiez] Stopping and starting the database before the index creation (just after the database is created and the user granted) + DATE: 09-03-2005 23:05 [dimeglio] Moved creation of indices inside database creation (if database exists indices are not recreated) diff --git a/org.glite.deployment.lb/config/scripts/glite-lb-config.py b/org.glite.deployment.lb/config/scripts/glite-lb-config.py index 27e32e0..8c8d936 100644 --- a/org.glite.deployment.lb/config/scripts/glite-lb-config.py +++ b/org.glite.deployment.lb/config/scripts/glite-lb-config.py @@ -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'], -- 1.8.2.3