Celibacy was law in the West long, long before AD 1049.
It was not vigorously on uniformly enforced until that year.