[v4.4] Relax term limit check in replica set to check for long long boundaries instead of int

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.4.15
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Repl 2022-02-21, Repl 2022-03-07, Repl 2022-03-21, Repl 2022-04-04, Repl 2022-05-02
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In repl_set_config.cpp, we currently validate that the term lies within the valid range of an int. However, the term is stored as a long long throughout the code base. We should relax that check to be consistent.

      This ticket only needs to be done in 4.4 and 4.2, since we moved the validation logic into an IDL file starting in 5.0, which does a check for int64, identical to long long

              Assignee:
              Vesselina Ratcheva (Inactive)
              Reporter:
              Xuerui Fa
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated:
                Resolved: