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

Result of gettimeofday() is not checked

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Works as Designed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Internal Code
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Platforms 16 (06/24/16)

      Description

      As SERVER-4740 explains, the server shouldn't use gettimeofday() for timing. However, the code currently does, and it doesn't check whether the call succeeded or not. If gettimeofday() returns -1 (not 0), then the call has failed and the values in the timeval struct shouldn't be used (they may not have even been initialised).

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: