[MDEV-28442] Hashicorp: refactoring to wrap static variables into a class Created: 2022-04-29  Updated: 2023-11-27  Resolved: 2022-05-09

Status: Closed
Project: MariaDB Server
Component/s: Plugins, Server
Fix Version/s: 10.9.1

Type: Task Priority: Critical
Reporter: Julius Goryavsky Assignee: Julius Goryavsky
Resolution: Fixed Votes: 0
Labels: Cloned

Issue Links:
Blocks
Relates
relates to MDEV-28276 Hashicorp: Document kv version=2 as m... Closed
relates to MDEV-28277 Hashicorp: Document the mandatory pre... Closed

 Description   

Based on the results of the review for MDEV-28277 and MDEV-28276, it was decided that it was necessary to refactor the code of initialization and deinitialization functions to get rid of a large number of gotos and complex conditions for memory deallocation. As a solution, it is proposed to move all variables that need to be deallocated to a special data class of the Hashicorp plugin.



 Comments   
Comment by Alexander Barkov [ 2022-05-02 ]

Ok to push.

Comment by Julius Goryavsky [ 2022-05-09 ]

Fixed, https://github.com/MariaDB/server/commit/8ae5408cab4452850a4de03032c7e8c8aa6dfbd9

Generated at Thu Feb 08 10:00:47 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.