From Gibraltar Hardware, this page on drum maintenance and repair is handy for addressing annoyances that pop up while tracking drums. If nothing else, the page advances the maxim that drummers (and the engineers who record them) should always carry duct tape.

Excessive Footboard Movement
If your bass or hi-hat pedal footboard suddenly begins moving from side-to-side while you’re playing, you should first check to see if the Y-shaped radius rod which is attached to the bottom of the pedal’s heel plate has disconnected itself …
Short-Term Repair: Duct tape the pedal’s heel plate to the floor and continue playing.