changed from using ls to find to handle very large number of snapshots

git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@414826 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
William Au 2006-06-16 13:46:11 +00:00
parent 9931b8799f
commit 944af6f61c
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ logMessage started by $oldwhoami
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