The Rangers are set to acquire right-hander Ronald Herrera from the Yankees, reports MLB.com’s Mark Feinsand (on Twitter). The two teams announced the trade shortly thereafter, revealing that lefty Reiver Sanmartin is going to the Yankees in return. Herrera was on the Yankees’ 40-man roster and will thus be added to the Rangers’ 40-man roster as well.

The Yankees entered the day with just three open 40-man spots and several players worthy of 40-man consideration, while the Rangers had a whopping 10 spots on their 40-man roster they can fill before tonight’s deadline to set rosters in advance of the Rule 5 Draft. Shipping Herrera to the Rangers vacates one of those spots and paves way for another player to be protected to the Rule 5 Draft.

The 22-year-old Herrera was initially signed by the A’s back in 2011 but went to the Padres as part of the trade that sent Kyle Blanks to Oakland in 2014.