Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-63421

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

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 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

      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@mongodb.com Vesselina Ratcheva (Inactive)
            Reporter:
            xuerui.fa@mongodb.com Xuerui Fa
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved: