Ray McDonald, a fifth-year defensive lineman for the 49ers, was arrested early Wednesday morning in Sunnyvale for an outstanding warrant, stemming from his 2010 arrest for suspicion of driving under the influence in San Mateo County.

McDonald was released from the Santa Clara County Main Jail at about 7 a.m., according to Sgt. Jose Cordoza of the Santa Clara Sheriff’s Department.

Sunnyvale police pulled over McDonald for an apparent traffic violation and he was arrested at about 2:39 a.m. when officers learned of his outstanding arrest warrant, according to Sunnyvale Capt. Dave Verbrugge.

“No other charges were filed,” Verbrugge said. “He was cooperative and no problems.”

An arrest warrant was issued Aug. 9 because McDonald failed to provide proof of completing the first-offender program he was sentenced to after his drunken-driving arrest. On Wednesday, he was cited and released because the warrant was under $7,500, according to the San Mateo County Sheriff’s Office.

“The 49ers are aware of the recent matter involving Ray McDonald,” a team spokesman said. “We are gathering the relevant facts and monitoring the developments closely.”

McDonald was seen entering the team’s Santa Clara facility Tuesday afternoon for an apparent workout.

McDonald is the second 49ers player arrested in the past two weeks. Outside linebacker Aldon Smith was arrested on charges of driving under the influence Jan. 28 in Miami Beach. The Sacramento Bee reported that Smith registered .194 and .175 on two breathalyzer tests to determine his blood-alcohol level.

McDonald started all but one game this past season, producing a career-high 2 ½ sacks in the NFC Championship Game loss to the New York Giants on Jan. 22. A third-round draft pick out of Florida in 2007, McDonald signed a five-year, $20 million contract in July.

As for whether his second arrest could merit disciplinary action from the NFL, league spokesman Greg Aiello responded in an email: “Arrests do not typically lead to league discipline.”

McDonald was arrested by the California Highway Patrol on June 12, 2010 for suspicion of driving under the influence on Highway 280.

Following that 2010 arrest, McDonald told reporters at the 49ers facility: “I just want to let you all know that whenever it works itself out, you’ll know everything that’s going on. I just want to apologize for making this a distraction because that’s not my intent. My intent is to come out here and work hard and try to win ballgames this year.”

Bay Area News Group’s Joshua Melvin contributed to this report.