Torres had the operation Thursday and general manager Doug Wilson says he is expected back later this season.
Torres was injured in a collision with Anaheim forward Emerson Etem last Friday.
The Sharks were counting on Torres to provide energy and physical play this year. His acquisition late last season provided a needed spark to the team before he was suspended for the final six playoff games for an illegal hit on Los Angeles forward Jarret Stoll.
The Sharks signed Torres to a three-year, $6 million contract in June.
We think that Randy is a very good coach. Our players think that Randy is a very good coach. We think that he's going to get the most out of this group. With the addition of the two assistants, a bit of a different dynamic, we're very comfortable that this is a quality coaching staff that's going to maximize the potential of this team.
— Maple Leafs GM Dave Nonis on head coach Randy Carlyle and his staff