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

Coverity analysis defect 49646: Unchecked return value

    • Fully Compatible
    • ALL
    • RPL 5 06/26/16

      Value returned from a function is not checked for errors before being used

      Defect 49646 (STATIC_C)
      Checker CHECKED_RETURN (subcategory none)
      File: /src/mongo/db/storage/storage_engine_lock_file_posix.cpp
      Function mongo::StorageEngineLockFile::writePid()
      /src/mongo/db/storage/storage_engine_lock_file_posix.cpp, line: 164
      Calling "fsync" without checking return value (as is done elsewhere 5 out of 7 times).

                  ::fsync(_lockFileHandle->_fd);
      

            Assignee:
            benety.goh@mongodb.com Benety Goh
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: