Skip to content

Commit

Permalink
Fixing Bug huge memory usage with large updates
Browse files Browse the repository at this point in the history
  • Loading branch information
britiger committed Nov 25, 2017
1 parent 4e564a7 commit bf349f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osmupdate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ then
fi
psql -f sql/planetVacuumTables.sql > /dev/null

update_ts=`zcat tmp/update.osc.gz | xmllint --xpath 'string(/osmChange/@timestamp)' -`
update_ts=`zcat tmp/update.osc.gz | head | grep '<osmChange' | awk '{print $0"</osmChange>"}' | xmllint --xpath 'string(/osmChange/@timestamp)' -`
mv tmp/update.osc.gz tmp/old_update.osc.gz
fi

Expand Down

0 comments on commit bf349f5

Please sign in to comment.