A police strike in Rio de Janeiro ended Monday just days before the city begins the world’s biggest Carnival celebration. A similar strike ended in the northeastern state of Bahia on Saturday, after the homicide rate there doubled in its capital, Salvador, during the 12-day walkout. The Rio de Janeiro strike, though, never affected security in the city and the number of officers who adhered to it appeared relatively small. The strike began with a large rally in Rio’s center late Thursday, the same day the state legislature voted to give officers a 39 percent raise staggered over this year and the next — just half of what officers were seeking. Base pay for starting officers in the state of Rio is $964 per month. Fernando Bandeira, president of the police union Sinpol, said officers would pursue their grievances again once the five-day Carnival ended.