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.
Very happy that old guy finally scored. It was great. You see the excitement on his face. I remember when I scored my first goal and it's just such a great feeling. Anytime you can help contribute to a team win it's a lot of fun.
— Boston defenseman Torey Krug on 26-year-old teammate Kevan Miller, whose first NHL goal helped the Bruins top the Maple Leafs