Skip to content

Commit

Permalink
Merge pull request #1 from bopopescu/bucharest
Browse files Browse the repository at this point in the history
Migrating from master/slave language
  • Loading branch information
PaulPrice authored Jul 24, 2020
2 parents c0ea241 + 3ea3848 commit fbb0b18
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/hsc/integration/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ def preHook(self, **kwargs):
#
# To start postgres:
#
# price@master:/data1a/work/price/integration $ initdb -D `pwd`/db/
# price@master:/data1a/work/price/integration $ pg_ctl -D /data1a/work/price/integration/db -l logfile start
# price@main:/data1a/work/price/integration $ initdb -D `pwd`/db/
# price@main:/data1a/work/price/integration $ pg_ctl -D /data1a/work/price/integration/db -l logfile start
#


Expand Down Expand Up @@ -226,7 +226,7 @@ class DbSourcesTest:
# This script setup environment variables with a new rerun and create
# a new database instance with the name of the given rerun
# A paf file for database access is also modified & rsynced across the
# master & slave nodes
# main & subordinate nodes
#export DBNAME=fh-20130118-pipeQa-2
export DBNAME=$1
Expand All @@ -242,6 +242,6 @@ class DbSourcesTest:
cat /work/ana/local/hscDb/tip/policy/hscDb.paf.orig | sed -e "s/^query_db:.*$/query_db: \"$DBNAME\"/" -e "s/^regist_db:.*$/regist_db: \"$DBNAME\"/" > /tmp/hscDb.paf
\mv /tmp/hscDb.paf /work/ana/local/hscDb/tip/policy/hscDb.paf
echo "Rsyncing hscDb and pipeQA over slave nodes ..."
echo "Rsyncing hscDb and pipeQA over subordinate nodes ..."
sh /work/ana/local/doRsyncHscDbPipeQa.sh
"""

0 comments on commit fbb0b18

Please sign in to comment.