SERVER-119413ClosedFixed

configTerm is expected as an int32 but can be an int64

In repl_set_config.idl the [configTerm|https://github.com/10gen/mongo/blob/master/src/mongo/db/repl/repl_set_config.idl#L174] field has a max value of int max but is derived from the term field of the original primary. If the term that is used here were to ever be above int::max and below int64::max that would cause a parsing crash. configTerm should be parsed as a long long like other uses of term in the code. This also requires changes to repl_set_heartbeat_response.h/cpp since we store the

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
8.3.0-rc08.2.78.0.217.0.32
Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.