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 <michellenguyen@pixielabs.ai> Differential Revision: https://phab.corp.pixielabs.ai/D11704 GitOrigin-RevId: 8d650e5e0221f48d678c4974d1cf5f18c5328bfa
Showing
+7 -4
Please register or sign in to comment