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

log rotate() is missing a lot of error checking

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Logging
    • Labels:
    • ALL

      The following functions in rotate() need to have their return statuses checked for errors so we don't have confusing behavior when things fail silently:
      rename()
      CreateFileA()
      freopen()
      dup2()

      If these functions fail, we should write to stderr and translate errno.

            Assignee:
            backlog-server-platform DO NOT USE - Backlog - Platform Team
            Reporter:
            milkie@mongodb.com Eric Milkie
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: