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

Coverity analysis defect 105112: Copy without assign

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.6
    • Affects Version/s: None
    • Component/s: Storage
    • Labels:
    • Fully Compatible
    • ALL
    • Storage NYC 2018-11-19

      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) {
      

            Assignee:
            gregory.wlodarek@mongodb.com Gregory Wlodarek
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: