-
Notifications
You must be signed in to change notification settings - Fork 454
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure db connections are closed when disabling plugin
Summary: We were seeing some issues with db connections. Taking a look at recent plugin code shows a potential area where the connection may not be getting closed properly. Defer in these cases aren't as ideal, since there are multiple db requests in a function. We just need to make sure we close the row if we're returning early due to an error. Test Plan: existing tests pass Reviewers: vihang Reviewed By: vihang Signed-off-by: Michelle Nguyen <[email protected]> Differential Revision: https://phab.corp.pixielabs.ai/D11704 GitOrigin-RevId: 8d650e5
- Loading branch information
1 parent
d2edbc3
commit 4e66e86
Showing
1 changed file
with
7 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters