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

Coverity analysis defect 105112: Copy without assign

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1.6
    • Component/s: Storage
    • Labels:

      Description

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

      Defect 105112 (STATIC_C)
      Checker COPY_WITHOUT_ASSIGN (subcategory none)
      File: /src/mongo/db/storage/biggie/store.h
      Parse Warning (no function name available)
      /src/mongo/db/storage/biggie/store.h, line: 62
      Class "mongo::biggie::RadixStore<std::_cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::Head" has a user-written copy constructor "mongo::biggie::RadixStore<std::cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::Head::Head(mongo::biggie::RadixStore<std::cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::_cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::Head const &)" but no corresponding user-written assignment operator.

              class Head;

      /src/mongo/db/storage/biggie/store.h, line: 854
      User-written copy constructor.

                  Head(const Head& other) : Node(other) {

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: