Skip to content
This repository has been archived by the owner on Oct 30, 2020. It is now read-only.

Commit

Permalink
Merge pull request #6 from searchify/master
Browse files Browse the repository at this point in the history
Fix to synchronize.sh script requested by santip
  • Loading branch information
santip committed Jan 20, 2012
2 parents 95da79f + e8770f5 commit 81d9b11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage/synchronize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down

0 comments on commit 81d9b11

Please sign in to comment.