Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-2047

Make Infinity equivalent to undefined for log retention configurations

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.4.2
    • Affects Version/s: None
    • Component/s: None
    • None
    • 1
    • Not Needed
    • Developer Tools

      Because some of our settings like logRetentionGB can be undefined while others like maxLogFileCount cannot, it's likely users will end up setting multiple of them as Infinity if they're looking to unset different things.

      Our code skips some checks when some of these limits are undefined but it won't skip if they're infinite so it can be a performance improvement if we skip those steps if the valid is infinite as well.

            Assignee:
            gagik.amaryan@mongodb.com Gagik Amaryan
            Reporter:
            gagik.amaryan@mongodb.com Gagik Amaryan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: