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

Coverity analysis defect 120046: Uninitialized scalar field

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • ALL
    • Sharding EMEA 2021-05-17

      Uninitialized scalar field

      The field will contain an arbitrary value left over from earlier computations. A scalar field is not initialized by the constructor
      /src/mongo/db/s/create_collection_coordinator.h:143: UNINIT_CTOR 120046 Class member declaration for "_collectionEmpty".
      /src/mongo/db/s/create_collection_coordinator.cpp:325: UNINIT_CTOR 120046 Non-static class member "_collectionEmpty" is not initialized in this constructor nor in any functions that it calls.

            Assignee:
            marcos.grillo@mongodb.com Marcos José Grillo Ramirez
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: