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

Coverity analysis defect 105145: Copy without assign

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.7
    • Affects Version/s: None
    • Component/s: Storage
    • Labels:
    • Fully Compatible
    • ALL
    • Storage NYC 2018-12-17
    • 1

      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
      

            Assignee:
            louis.williams@mongodb.com Louis Williams
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: