If the anal glands don't have a chance to empty, the fluid can build up. This is called impaction. When anal glands become impacted, they can become irritated. Anal sacs, or anal glands, carry some smelly fluid and occasionally need to be expressed, or emptied. Many dogs express them by themselves every time they.