mirror of https://github.com/apache/lucene.git
- Added "&&" between the 3 calls that copy, remove, and move index data to add a bit of extra robustness
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@549454 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a21373772a
commit
bd5f3ae723
|
@ -141,8 +141,8 @@ fi
|
||||||
# install using hard links into temporary directory
|
# install using hard links into temporary directory
|
||||||
# remove original index and then atomically copy new one into place
|
# remove original index and then atomically copy new one into place
|
||||||
logMessage installing snapshot ${name}
|
logMessage installing snapshot ${name}
|
||||||
cp -lr ${name}/ ${data_dir}/index.tmp$$
|
cp -lr ${name}/ ${data_dir}/index.tmp$$ && \
|
||||||
/bin/rm -rf ${data_dir}/index
|
/bin/rm -rf ${data_dir}/index && \
|
||||||
mv -f ${data_dir}/index.tmp$$ ${data_dir}/index
|
mv -f ${data_dir}/index.tmp$$ ${data_dir}/index
|
||||||
|
|
||||||
# update distribution stats
|
# update distribution stats
|
||||||
|
|
Loading…
Reference in New Issue