Skip to content
This repository
Browse code

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

  • Loading branch information...
commit 71e05736cb7b5724f72709214647b827293d6ecf 2 parents e992719 + 81d9b11
Ignacio Perez authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  storage/synchronize.sh
2  storage/synchronize.sh
@@ -81,7 +81,7 @@ if [[ ! -f "/data/master" || ! -f "/data/storage/safe_to_read" ]]; then
81 81 if [[ $? != 0 ]]; then echo ">>>>>>>>>>>>>>>>>> FAILED to synchronize optimized segments :("; exit 1; fi
82 82
83 83 echo "[+] Removing duplicates between sorted and unsorted segments..."
84   - find /data/storage/migrating/indexes -name *.sorted_* | cut -d. -f1 | awk '{printf "%s.unsorted_*\n",$1}' | xargs -L 100 rm -f
  84 + find /data/storage/migrating/indexes -name *\.sorted_* | sed -r -e "s/\.sorted_[0-9]+$/.unsorted_*/" | xargs -L 100 rm -f
85 85
86 86 echo "[+] Fetching time delta with master..."
87 87 MASTER_DATE=`ssh $MASTER date "+%s"`

0 comments on commit 71e0573

Please sign in to comment.
Something went wrong with that request. Please try again.