Permalink
Browse files

Merge pull request #6 from searchify/master

Fix to synchronize.sh script requested by santip
  • Loading branch information...
2 parents 95da79f + e8770f5 commit 81d9b11f85f2286467c7451bc54b5df53761de87 @santip santip committed Jan 20, 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 81d9b11

Please sign in to comment.