Permalink
Browse files

Merge branch 'master' of github.com:linkedin/indextank-service

  • Loading branch information...
2 parents e992719 + 81d9b11 commit 71e05736cb7b5724f72709214647b827293d6ecf Ignacio Perez committed Jan 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 storage/synchronize.sh
View
2 storage/synchronize.sh
@@ -81,7 +81,7 @@ if [[ ! -f "/data/master" || ! -f "/data/storage/safe_to_read" ]]; then
if [[ $? != 0 ]]; then echo ">>>>>>>>>>>>>>>>>> FAILED to synchronize optimized segments :("; exit 1; fi
echo "[+] Removing duplicates between sorted and unsorted segments..."
- find /data/storage/migrating/indexes -name *.sorted_* | cut -d. -f1 | awk '{printf "%s.unsorted_*\n",$1}' | xargs -L 100 rm -f
+ find /data/storage/migrating/indexes -name *\.sorted_* | sed -r -e "s/\.sorted_[0-9]+$/.unsorted_*/" | xargs -L 100 rm -f
echo "[+] Fetching time delta with master..."
MASTER_DATE=`ssh $MASTER date "+%s"`

0 comments on commit 71e0573

Please sign in to comment.