- 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:
Otis Gospodnetic 2007-06-21 12:10:30 +00:00
parent a21373772a
commit bd5f3ae723
1 changed files with 2 additions and 2 deletions

View File

@ -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