Ouch. I'm always nervous about doing that in a race. There was a race down here that had a section that was mud then pea gravel then mud then more pea gravel (or as a local obra official said frosting, sprinkles, frosting, sprinkles) that too many people tried to shift in and snapped their rear derailleurs.