|
From: Michael P <mic...@us...> - 2010-08-04 23:38:17
|
Project "Postgres-XC".
The branch, master has been updated
via 086c5c6be32d4ca9232523cd64caf6d29aaac42c (commit)
from d7ca431066efe320107581186ab853b28fa5f7a7 (commit)
- Log -----------------------------------------------------------------
commit 086c5c6be32d4ca9232523cd64caf6d29aaac42c
Author: Michael P <mic...@us...>
Date: Thu Aug 5 08:36:24 2010 +0900
Correction of bugs in pgxc_ddl
reported by Bug report 3039166 in Source Forge Tracker.
Those bugs were linked with string management problems in the script.
diff --git a/src/bin/scripts/pgxc_ddl b/src/bin/scripts/pgxc_ddl
index efc2f69..2442595 100644
--- a/src/bin/scripts/pgxc_ddl
+++ b/src/bin/scripts/pgxc_ddl
@@ -125,17 +125,17 @@ fi
hosts=`cat $PGXC_CONF | grep coordinator_hosts | cut -d "'" -f 2`
ports=`cat $PGXC_CONF | grep coordinator_ports | cut -d "'" -f 2`
folders=`cat $PGXC_CONF | grep coordinator_folders | cut -d "'" -f 2`
-if [ "hosts" = "" ]
+if [ "$hosts" = "" ]
then
echo "coordinator_hosts not defined in pgxc.conf"
exit 2
fi
-if [ "ports" = "" ]
+if [ "$ports" = "" ]
then
echo "coordinator_ports not defined in pgxc.conf"
exit 2
fi
-if [ "folders" = "" ]
+if [ "$folders" = "" ]
then
echo "coordinator_folders not defined in pgxc.conf"
exit 2
@@ -276,7 +276,7 @@ fi
#Main process begins
#Check if the database is defined, This could lead to coordinator being stopped uselessly
-if [ $DB_NAME != "" ]
+if [ "$DB_NAME" != "" ]
then
#Simply launch a fake SQL on the Database wanted
$PSQL_CLIENT -h ${COORD_HOSTNAMES[$COORD_ORIG_INDEX]} -p ${COORD_PORTS[$COORD_ORIG_INDEX]} -c 'select now()' -d $DB_NAME; err=$?
-----------------------------------------------------------------------
Summary of changes:
src/bin/scripts/pgxc_ddl | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
hooks/post-receive
--
Postgres-XC
|