Skip to content

Commit

Permalink
#162 copydbf in 3.1.0.6 writes output to stderr ... apparently
Browse files Browse the repository at this point in the history
  • Loading branch information
dalehenrich committed Jul 26, 2017
1 parent 5d6d45e commit 59db76c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/newExtent
Expand Up @@ -117,9 +117,10 @@ $GS_HOME/bin/stopStone $stoneName

if [ "${noRestart}" = "false" ] ; then
echo "Copy snapshot and remove tranlogs"

filetype="extent"
if [ "${snapshotFile}x" != "x" ] ; then
filetype=`$GEMSTONE/bin/copydbf -i $snapshotFile | sed -n '/File type:/p' | cut -d : -f 2 | xargs | cut -d \ -f 1`
filetype=`$GEMSTONE/bin/copydbf -i $snapshotFile 2>&1 | sed -n '/File type:/p' | cut -d : -f 2 | xargs | cut -d \ -f 1`
fi
case "$filetype" in
backup)
Expand Down Expand Up @@ -159,7 +160,7 @@ else
usage
exit_1_banner "Must specify <snapshot-file-path>, when using the -n (no restart option). Tranlogs left in $\GS_HOME/gemstone/stones/${stoneName}/tranlogs are not likely to be appropriate for \$GEMSTONE/bin/extent0.seaside.dbf"
fi
filetype=`$GEMSTONE/bin/copydbf -i $snapshotFile | sed -n '2p' | cut -d : -f 2 | xargs | cut -d \ -f 1`
filetype=`$GEMSTONE/bin/copydbf -i $snapshotFile 2>&1 | sed -n '/File type:/p' | cut -d : -f 2 | xargs | cut -d \ -f 1`
if [ "${filetype}" != "extent" ] ; then
usage; exit_1_banner "snapshot file type ('${filetype}') must be 'extent' if -n option specified"
fi
Expand Down

0 comments on commit 59db76c

Please sign in to comment.