The code path from mongoc_collection_aggregate when "opts" contains "serverId" calls _mongoc_get_server_id_from_opts twice, once with empty opts and once with the caller's opts.