SOLR-830: Use perl regex to improve accuracy of finding latest snapshot in snappuller

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@719233 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
William Au 2008-11-20 14:14:07 +00:00
parent 3962cb987e
commit 177f900343
2 changed files with 5 additions and 3 deletions

View File

@ -125,8 +125,6 @@ Bug Fixes
11. SOLR-872: Better error message for incorrect copyField destination (Noble Paul via shalin) 11. SOLR-872: Better error message for incorrect copyField destination (Noble Paul via shalin)
12. SOLR-346: Use perl regex to improve accuracy of finding latest snapshot in snapinstaller (billa)
Other Changes Other Changes
---------------------- ----------------------
@ -169,6 +167,10 @@ Bug Fixes
1. SOLR-802: Fix a potential null pointer error in the distributed FacetComponent 1. SOLR-802: Fix a potential null pointer error in the distributed FacetComponent
(David Bowen via ryan) (David Bowen via ryan)
2. SOLR-346: Use perl regex to improve accuracy of finding latest snapshot in snapinstaller (billa)
3. SOLR-830: Use perl regex to improve accuracy of finding latest snapshot in snappuller (billa)
================== Release 1.3.0 20080915 ================== ================== Release 1.3.0 20080915 ==================

View File

@ -178,7 +178,7 @@ fi
# get directory name of latest snapshot if not specified on command line # get directory name of latest snapshot if not specified on command line
if [[ -z ${snap_name} ]] if [[ -z ${snap_name} ]]
then then
snap_name=`ssh -o StrictHostKeyChecking=no ${master_host} "ls ${master_data_dir}|grep 'snapshot\.'|grep -v wip|sort -r|head -1"` snap_name=`ssh -o StrictHostKeyChecking=no ${master_host} "perl -e 'chdir q|${master_data_dir}|; print ((sort grep {/^snapshot[.][1-9][0-9]{13}$/} <*>)[-1])'"`
fi fi
if [[ "${snap_name}" == "" ]] if [[ "${snap_name}" == "" ]]
then then