This is how five days of misery did not become six: As the shards of Alex Gordon’s broken bat sprayed through the infield, Eric Hosmer dashed from second base, a 180-foot sprint which opened the door for a 3-1 Royals victory over the San Diego Padres in 11 innings on Tuesday night at Petco Park.

The hit by Gordon rolled past the glove of Padres second baseman Jedd Gyorko and trickled into the outfield. Hosmer dove for the plate and his momentum carried him a few feet on his stomach. For Gordon, the aesthetics of the single mattered not.

“I don’t care,” Gordon said. “It works. We needed that.”

His uniform caked in dirt, Hosmer pounded on his helmet and hammered with high-fives the hands of his teammates in the dugout. Billy Butler added an RBI double off Padres reliever Nick Vincent on the next at-bat to create some insurance. The outcome snapped a five-game skid, eased the tension surrounding the club and gave the franchise its first victory at Petco Park.

“Hopefully, we can start a winning streak now,” Butler said.

The late-night rally allowed the Royals (15-17) to atone for another mostly fruitless night at the plate. The team squandered an opportunity in the ninth. Shortstop Alcides Escobar planted himself on third base with a series of daring plays: He notched an infield single and stole two bases. When Lorenzo Cain floated a pop-up in foul territory near first base, Escobar broke for the plate.

The aggression was not repaid. Padres first baseman Kyle Blanks caught the ball and fired a strike homeward. Catcher Yasmani Grandal dropped a lunging tag as Escobar crossed the plate. The replay appeared “inconclusive,” manager Ned Yost said, and he elected not to challenge the call.

“I wasn’t going to waste the time,” he said, adding, “I thought if I challenged right there, I would have lost it.”