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

Coverity analysis defect 105128: Unchecked return value

    XMLWordPrintable

Details

    • Fully Compatible
    • ALL
    • v4.0, v3.6
    • Sharding 2018-12-17

    Description

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

      Defect 105128 (STATIC_C)
      Checker CHECKED_RETURN (subcategory none)
      File: /src/mongo/db/s/migration_destination_manager.cpp
      Function mongo::MigrationDestinationManager::_migrateDriver(mongo::OperationContext *)
      /src/mongo/db/s/migration_destination_manager.cpp, line: 880
      Calling "_applyMigrateOp" without checking return value (as is done elsewhere 1 out of 2 times).

                      _applyMigrateOp(opCtx, mods, &lastOpApplied);

      Attachments

        Activity

          People

            misha.tyulenev@mongodb.com Misha Tyulenev
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: