When he thought about it, David Price was shocked he got 20 pitches into his start before getting a warning from plate umpire Dan Bellino.

As soon as Price’s 94-mile-per-hour, first-inning fastball dotted David Ortiz in the hip, Bellino hopped from his crouch behind Rays catcher Jose Molina.

He cut between Ortiz and Molina to make a beeline for Price. He pointed sternly to warn Price, then turned to put the Red Sox dugout on notice, before doing the same to the Rays.

The teams had just had a benches-clearing dustup in Tampa a week ago.

“With everything that’s going on, I figured a warning would be passed out before the game,” Price said. “That wasn’t the case.”

Boston’s 3-2, 10-inning win was another volatile chapter in their long-running rivalry. Four batters ended up getting seam stamps, Sox manager John Farrell, bench coach Torey Lovullo, starting pitcher Brandon Workman, and third base coach Brian Butterfield all were ejected, the benches cleared yet again, and somehow Price managed to stay on the mound for seven innings, giving up just two runs on six hits.

Even though they had history going back to Price’s beef with the way Ortiz admired his two home runs off Price in the ALDS last October, the lefthander said no hard feelings linger.

His intent was to pitch Ortiz inside.

“I’ve got to establish my fastball in,” Price said. “I had six lefties in that lineup. That’s my favorite side of the plate to go to. So I’ve got to establish in there.”

The fourth-inning fastball that clipped Mike Carp around the hands was a different matter.

Price was aware that he’d hit Carp in the past.

When it happened again Friday night, Carp immediately dropped his bat and started barking at Price as players spilled out from both dugouts and bullpens.

“I 100 percent understand his frustration,” Price said. “Obviously that’s not the pitch I’m trying to throw, that’s not the pitch, if I was trying to hit him, that’s nowhere near the region it’s going to be. I didn’t mean to do that.”

Carp and Price have faced each other seven times, and Price has hit him twice. Last May, Price dotted Carp with the bases loaded.