mirror of https://github.com/apache/lucene.git
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:
parent
9931b8799f
commit
944af6f61c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue