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

Result of gettimeofday() is not checked

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor - P4
    • Resolution: Works as Designed
    • None
    • None
    • Internal Code
    • None
    • Fully Compatible
    • ALL
    • 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

              andrew.morrow@mongodb.com Andrew Morrow
              kevin.pulo@mongodb.com Kevin Pulo
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: