mirror of https://github.com/apache/lucene.git
SOLR-669 snappuler fix for FreeBSD/Darwin
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@685892 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c80333e213
commit
facb2db8f3
|
@ -526,6 +526,8 @@ Bug Fixes
|
||||||
|
|
||||||
46. SOLR-696: Fixed bug in NamedListCodec in regards to serializing Iterable objects. (gsingers)
|
46. SOLR-696: Fixed bug in NamedListCodec in regards to serializing Iterable objects. (gsingers)
|
||||||
|
|
||||||
|
47. SOLR-669: snappuler fix for FreeBSD/Darwin (Richard "Trey" Hyde via Otis Gospodnetic)
|
||||||
|
|
||||||
Other Changes
|
Other Changes
|
||||||
1. SOLR-135: Moved common classes to org.apache.solr.common and altered the
|
1. SOLR-135: Moved common classes to org.apache.solr.common and altered the
|
||||||
build scripts to make two jars: apache-solr-1.3.jar and
|
build scripts to make two jars: apache-solr-1.3.jar and
|
||||||
|
|
|
@ -224,8 +224,14 @@ ssh -o StrictHostKeyChecking=no ${master_host} mkdir -p ${master_status_dir}
|
||||||
|
|
||||||
# start new distribution stats
|
# start new distribution stats
|
||||||
rsyncStart=`date +'%Y-%m-%d %H:%M:%S'`
|
rsyncStart=`date +'%Y-%m-%d %H:%M:%S'`
|
||||||
|
if [[ "${OS}" == "Darwin" || "${OS}" == "FreeBSD" ]]
|
||||||
|
then
|
||||||
|
startTimestamp=`date -j -f '%Y-%m-%d %H:%M:%S' "$rsyncStart" +'%Y%m%d-%H%M%S'`
|
||||||
|
rsyncStartSec=`date -j -f '%Y-%m-%d %H:%M:%S' "$rsyncStart" +'%s'`
|
||||||
|
else
|
||||||
startTimestamp=`date -d "$rsyncStart" +'%Y%m%d-%H%M%S'`
|
startTimestamp=`date -d "$rsyncStart" +'%Y%m%d-%H%M%S'`
|
||||||
rsyncStartSec=`date -d "$rsyncStart" +'%s'`
|
rsyncStartSec=`date -d "$rsyncStart" +'%s'`
|
||||||
|
fi
|
||||||
startStatus="rsync of `basename ${name}` started:$startTimestamp"
|
startStatus="rsync of `basename ${name}` started:$startTimestamp"
|
||||||
echo ${startStatus} > ${solr_root}/logs/snappuller.status
|
echo ${startStatus} > ${solr_root}/logs/snappuller.status
|
||||||
pushStatus
|
pushStatus
|
||||||
|
@ -236,8 +242,14 @@ ${stats} rsync://${master_host}:${rsyncd_port}/solr/${name}/ ${data_dir}/${name}
|
||||||
|
|
||||||
rc=$?
|
rc=$?
|
||||||
rsyncEnd=`date +'%Y-%m-%d %H:%M:%S'`
|
rsyncEnd=`date +'%Y-%m-%d %H:%M:%S'`
|
||||||
|
if [[ "${OS}" == "Darwin" || "${OS}" == "FreeBSD" ]]
|
||||||
|
then
|
||||||
|
endTimestamp=`date -j -f '%Y-%m-%d %H:%M:%S' "$rsyncEnd" +'%Y%m%d-%H%M%S'`
|
||||||
|
rsyncEndSec=`date -j -f '%Y-%m-%d %H:%M:%S' "$rsyncEnd" +'%s'`
|
||||||
|
else
|
||||||
endTimestamp=`date -d "$rsyncEnd" +'%Y%m%d-%H%M%S'`
|
endTimestamp=`date -d "$rsyncEnd" +'%Y%m%d-%H%M%S'`
|
||||||
rsyncEndSec=`date -d "$rsyncEnd" +'%s'`
|
rsyncEndSec=`date -d "$rsyncEnd" +'%s'`
|
||||||
|
fi
|
||||||
elapsed=`expr $rsyncEndSec - $rsyncStartSec`
|
elapsed=`expr $rsyncEndSec - $rsyncStartSec`
|
||||||
if [[ $rc != 0 ]]
|
if [[ $rc != 0 ]]
|
||||||
then
|
then
|
||||||
|
|
Loading…
Reference in New Issue