Mets acquire former All-Star infielder in trade