This question has options. Is the word "carnival" used in the same way in the following two sentences?

We all got to ride the merry-go-round when the brought their carnival to town.

When the carnival came to town, every one wanted some cotton candy.

Options:
(1). different meanings
(2). the same meaning
(2).