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

Coverity analysis defect 105128: Unchecked return value

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.0, v3.6
    • Sprint:
      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

            Assignee:
            misha.tyulenev Misha Tyulenev
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: