lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bi...@apache.org
Subject svn commit: r414826 - /incubator/solr/trunk/src/scripts/snapinstaller
Date Fri, 16 Jun 2006 13:46:11 GMT
Author: billa
Date: Fri Jun 16 06:46:11 2006
New Revision: 414826

URL: http://svn.apache.org/viewvc?rev=414826&view=rev
Log:
changed from using ls to find to handle very large number of snapshots

Modified:
    incubator/solr/trunk/src/scripts/snapinstaller

Modified: incubator/solr/trunk/src/scripts/snapinstaller
URL: http://svn.apache.org/viewvc/incubator/solr/trunk/src/scripts/snapinstaller?rev=414826&r1=414825&r2=414826&view=diff
==============================================================================
--- incubator/solr/trunk/src/scripts/snapinstaller (original)
+++ incubator/solr/trunk/src/scripts/snapinstaller Fri Jun 16 06:46:11 2006
@@ -103,7 +103,7 @@
 logMessage command: $0 $@
 
 # get directory name of latest snapshot
-name=`ls -d ${data_dir}/snapshot.* 2>/dev/null|grep -v wip|sort -r|head -1`
+name=`find ${data_dir} -name snapshot.* -print|grep -v wip|sort -r|head -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