Coverity analysis defect 49646: Unchecked return value

XMLWordPrintableJSON

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

      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
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: