Skip to content

When closing database connections, some may linger incorrectly #5783

@TheWitness

Description

@TheWitness

Describe the bug

When the function db_close is called, first the variable connection variable is not passed by reference leading to not properly unsetting the variable to close the connection. Secondly, it closes the connection of the primary Cacti connection regardless leading to a loss of connection. This only happens when you are trying to use two connections to MariaDB or MySQL in support of such things as MaxScale.

Expected behavior

Properly close the correct connection objects.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUndesired behaviourconfirmedBug is confirm by dev teamresolvedA fixed issue

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions