Coverity analysis defect 105105: Uninitialized pointer field

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Works as Designed
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • ALL
    • Sharding 2018-11-19
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      A pointer field is not initialized in the constructor

      Defect 105105 (STATIC_C)
      Checker UNINIT_CTOR (subcategory pointer)
      File: /src/mongo/db/s/active_shard_collection_registry.cpp
      Function mongo::ScopedShardCollection::ScopedShardCollection(mongo::ScopedShardCollection&&)
      /src/mongo/db/s/active_shard_collection_registry.h, line: 156
      Class member declaration for "_registry".

              ActiveShardCollectionRegistry* _registry;
      

      /src/mongo/db/s/active_shard_collection_registry.cpp, line: 155
      Non-static class member "_registry" is not initialized in this constructor nor in any functions that it calls.

          }
      

            Assignee:
            Janna Golden (Inactive)
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: