Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wait a bit more after fetching a non-existant yet diff. #343

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/bin/fetch_osc_and_apply.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ fetch_and_apply_minute_diff()
printf -v TDIGIT2 %03u $(($ARG % 1000))
ARG=$(($ARG / 1000))
printf -v TDIGIT1 %03u $ARG

REMOTE_PATH="$DIFF_URL/$TDIGIT1/$TDIGIT2/$TDIGIT3"
REMOTE_DIFF="$REMOTE_PATH.osc.gz"
REMOTE_STATE="$REMOTE_PATH.state.txt"
Expand All @@ -81,7 +81,7 @@ fetch_and_apply_minute_diff()
ret=$?
rm $TMP_DIFF 2>/dev/null
rm $TMP_DIFF_UNCOMPRESS 2>/dev/null

#Update the timestamp
while [[ true ]];
do
Expand All @@ -96,7 +96,7 @@ fetch_and_apply_minute_diff()
cp $DB_DIR/osm_base_version $DB_DIR/osm_base_version_munin
rm $TMP_STATE
return $ret
}; fi
}; fi
done

};
Expand Down Expand Up @@ -125,7 +125,7 @@ do
else
{
REPLICATE_ID=$(($REPLICATE_ID - 1))
sleep 10 #Wait for the diff to be available
sleep 40 #Wait for the diff to be available
}; fi
};
done
Expand Down