Ah, I had a feeling it was something to do with anal glands before I scrolled down to where you got back.

Anal glands can cause a lot of problems in dogs. I'm glad she's ok though.