In the following 2009 â `` 10 season , Messi scored 47 goals in all games . That equalls to Ronaldo 's record total for Barcelona . This record breaking season was then eclipsed in the following 2009 â `` 10 campaign , where Messi scored 47 goals in all competitions , equalling Ronaldo 's record total for Barcelona .