Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-12717

Coverity analysis defect 138963: Rule of three in timestamp_simulator.h

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Trivial - P5 Trivial - P5
    • None
    • Affects Version/s: None
    • Component/s: Tools
    • Labels:
    • Storage Engines
    • StorEng - Defined Pipeline

      Rule of three

      Compiler generated special functions may behave incorrectly if the class requires a user-definition for any of its special functions. This class has user-definitions for at least one but not all of its special functions (copy constructor, copy assignment operator, destructor). If one of these functions requires a user-definition then it is likely all of them should have a definition.
      /test/simulator/timestamp/src/include/timestamp_manager.h:38: RULE_OF_ZERO_THREE_FIVE 138963 Class "timestamp_manager" has a user definition for at least one special function (copy constructor, copy assignment, destructor) but not all. If one of these functions requires a user definition then the others likely do as well.
      /test/simulator/timestamp/src/include/timestamp_manager.h:65: RULE_OF_ZERO_THREE_FIVE 138963 User-defined copy constructor.
      /test/simulator/timestamp/src/include/timestamp_manager.h:66: RULE_OF_ZERO_THREE_FIVE 138963 User-defined copy assignment operator.

            Assignee:
            etienne.petrel@mongodb.com Etienne Petrel
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: