You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafodion.apache.org by li...@apache.org on 2018/08/07 23:40:46 UTC
[2/5] trafodion git commit: fix bugs
fix bugs
Project: http://git-wip-us.apache.org/repos/asf/trafodion/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafodion/commit/399b2bdf
Tree: http://git-wip-us.apache.org/repos/asf/trafodion/tree/399b2bdf
Diff: http://git-wip-us.apache.org/repos/asf/trafodion/diff/399b2bdf
Branch: refs/heads/master
Commit: 399b2bdf5b65d2dff0e578461cdb03c8d2430577
Parents: a864ee1
Author: LiuMing <ov...@sina.com>
Authored: Sun Aug 5 12:05:55 2018 +0800
Committer: LiuMing <ov...@sina.com>
Committed: Sun Aug 5 12:05:55 2018 +0800
----------------------------------------------------------------------
core/sqf/sql/scripts/stfscheck | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/trafodion/blob/399b2bdf/core/sqf/sql/scripts/stfscheck
----------------------------------------------------------------------
diff --git a/core/sqf/sql/scripts/stfscheck b/core/sqf/sql/scripts/stfscheck
index e5ff0c0..015b9fe 100755
--- a/core/sqf/sql/scripts/stfscheck
+++ b/core/sqf/sql/scripts/stfscheck
@@ -26,12 +26,14 @@
#parse the ms.env
stfspath=`dtmci showenv STFS_HDD_LOCATION`
-IFS=: declare -a DIRS=($stfspath)
-for ELEM in "${DIRS[@]}"
+IFS=: DIRS=($stfspath)
+declare -p DIRS
+for ELEM in ${DIRS[@]}
do
- touch $ELEM/test1
+ touch $ELEM/teststfs
if [ $? -ne 0 ]; then
- return 1
+ echo "Scratch File test ERROR for $ELEM@$HOSTNAME"
+ exit 1
fi
- rm $ELEM/test1
+ rm -f $ELEM/teststfs
done