Carnival changes out mattresses on a rotating basis, not necessarily dictated by drydocks unless of course they're going to do a Sunshine-style renovation of the ship. Any maintenance they can do outside of drydock, they do because drydock time is expensive.
So it's not necessarily guaranteed your Pride stateroom will have a new mattress.