Explicitely initialize CollectionOptions struct in downgradeFromViewlessTimeseries to silent coverity false positve

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • CAR Team 2026-02-02
    • 🟦 Shard Catalog
    • None
    • None
    • None
    • None
    • None
    • None

      In downgradeFromViewlessTimeseries we currently initialize CollectionOptions using the default initialization. Coverity wrongly claim that the struct is not initialized.

      To silence the warning (and make the initialization intent obvious) we can initialize the CollectionOptions using value-initialization:

      CollectionOptions viewOptions; // default-initialization
      CollectionOptions viewOptions{}; // value-initialization
      

            Assignee:
            Tommaso Tocci
            Reporter:
            Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: