-
-
Notifications
You must be signed in to change notification settings - Fork 436
When closing database connections, some may linger incorrectly #5783
Copy link
Copy link
Closed
Labels
bugUndesired behaviourUndesired behaviourconfirmedBug is confirm by dev teamBug is confirm by dev teamresolvedA fixed issueA fixed issue
Milestone
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugUndesired behaviourUndesired behaviourconfirmedBug is confirm by dev teamBug is confirm by dev teamresolvedA fixed issueA fixed issue