The Oakland Athletics have agreed to terms on a contract with Eric O'Flaherty.

The left-hander received a two-year, $7 million deal.

O'Flaherty, who turns 29 next month, sustained a torn ulnar collateral ligament in his pitching elbow last season with Atlanta.

He went 3-0 with a 2.50 ERA in 19 appearances before his season ended May 17 and he had elbow ligament-replacement surgery.