lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bi...@apache.org
Subject svn commit: r719232 - in /lucene/solr/trunk: CHANGES.txt src/scripts/snapinstaller
Date Thu, 20 Nov 2008 14:09:18 GMT
Author: billa
Date: Thu Nov 20 06:09:18 2008
New Revision: 719232

URL: http://svn.apache.org/viewvc?rev=719232&view=rev
Log:
SOLR-346: Use perl regex to improve accuracy of finding latest snapshot in snapinstaller

Modified:
    lucene/solr/trunk/CHANGES.txt
    lucene/solr/trunk/src/scripts/snapinstaller

Modified: lucene/solr/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/CHANGES.txt?rev=719232&r1=719231&r2=719232&view=diff
==============================================================================
--- lucene/solr/trunk/CHANGES.txt (original)
+++ lucene/solr/trunk/CHANGES.txt Thu Nov 20 06:09:18 2008
@@ -125,6 +125,8 @@
 
 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
 ----------------------

Modified: lucene/solr/trunk/src/scripts/snapinstaller
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/scripts/snapinstaller?rev=719232&r1=719231&r2=719232&view=diff
==============================================================================
--- lucene/solr/trunk/src/scripts/snapinstaller (original)
+++ lucene/solr/trunk/src/scripts/snapinstaller Thu Nov 20 06:09:18 2008
@@ -110,7 +110,7 @@
 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



Mime
View raw message