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

Coverity analysis defect 105145: Copy without assign

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1.7
    • Component/s: Storage
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Storage NYC 2018-12-17
    • Story Points:
      1

      Description

      Class has user-written copy constructor but no user-written assignment operator

      Defect 105145 (STATIC_C)
      Checker COPY_WITHOUT_ASSIGN (subcategory none)
      File: /src/mongo/db/storage/kv/temporary_kv_record_store.h
      Parse Warning (no function name available)
      /src/mongo/db/storage/kv/temporary_kv_record_store.h, line: 46
      Class "mongo::TemporaryKVRecordStore" has a user-written copy constructor "mongo::TemporaryKVRecordStore::TemporaryKVRecordStore(mongo::TemporaryKVRecordStore &&)" but no corresponding user-written assignment operator.

          class TemporaryKVRecordStore : public TemporaryRecordStore {

      /src/mongo/db/storage/kv/temporary_kv_record_store.h, line: 54
      User-written copy constructor.

              TemporaryKVRecordStore(TemporaryKVRecordStore&& other) noexcept

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: