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

Coverity analysis defect 99831: Unchecked return value

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Replication
    • Fully Compatible
    • ALL
    • Repl 18 (08/05/16), Repl 2016-08-29

    Description

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

      Defect 99831 (STATIC_C)
      Checker CHECKED_RETURN (subcategory none)
      File: /src/mongo/db/repl/replication_coordinator_impl.cpp
      Function mongo::repl::ReplicationCoordinatorImpl::WaiterInfoGuard::~WaiterInfoGuard()
      /src/mongo/db/repl/replication_coordinator_impl.cpp, line: 219
      Calling "remove_inlock" without checking return value (as is done elsewhere 1 out of 2 times).

                  _list->remove_inlock(&waiter);

      Attachments

        Activity

          People

            siyuan.zhou@mongodb.com Siyuan Zhou
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: