lucene-solr-commits mailing list archives

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

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

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

Modified: lucene/solr/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/CHANGES.txt?rev=719233&r1=719232&r2=719233&view=diff
==============================================================================
--- lucene/solr/trunk/CHANGES.txt (original)
+++ lucene/solr/trunk/CHANGES.txt Thu Nov 20 06:14:07 2008
@@ -125,8 +125,6 @@
 
 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
 ----------------------
@@ -169,6 +167,10 @@
  1. SOLR-802: Fix a potential null pointer error in the distributed FacetComponent
     (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 ==================
 

Modified: lucene/solr/trunk/src/scripts/snappuller
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/scripts/snappuller?rev=719233&r1=719232&r2=719233&view=diff
==============================================================================
--- lucene/solr/trunk/src/scripts/snappuller (original)
+++ lucene/solr/trunk/src/scripts/snappuller Thu Nov 20 06:14:07 2008
@@ -178,7 +178,7 @@
 # get directory name of latest snapshot if not specified on command line
 if [[ -z ${snap_name} ]]
 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
 if [[ "${snap_name}" == "" ]]
 then



Mime
View raw message