mirror of https://github.com/apache/lucene.git
SOLR-346: Use perl regex to improve accuracy of finding latest snapshot in snapinstaller
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@719232 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e3ba95b8b8
commit
3962cb987e
|
@ -125,6 +125,8 @@ Bug Fixes
|
|||
|
||||
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
|
||||
----------------------
|
||||
|
|
|
@ -110,7 +110,7 @@ logMessage started by $oldwhoami
|
|||
logMessage command: $0 $@
|
||||
|
||||
# get directory name of latest snapshot
|
||||
name=`ls ${data_dir}|grep 'snapshot\.'|grep -v wip|sort -r|head -1`
|
||||
name=`perl -e 'chdir q|${data_dir}|; print ((sort grep {/^snapshot[.][1-9][0-9]{13}$/} <*>)[-1])'`
|
||||
|
||||
# clean up after INT/TERM
|
||||
trap 'echo "caught INT/TERM, exiting now but partial installation may have already occured";/bin/rm -rf ${data_dir"/index.tmp$$;logExit aborted 13' INT TERM
|
||||
|
|
Loading…
Reference in New Issue