It left " extremely dangerous " cracks in the Zipingpu Dam upriver from the earthquake-hit city of Dujiangyan and some 2,000 soldiers were sent to repair the damage , the official Xinhua News Agency said .