[MDEV-22441] implement a generic way to change a value of a variable in a scope Created: 2020-05-03  Updated: 2022-12-28

Status: In Review
Project: MariaDB Server
Component/s: Server
Fix Version/s: 10.11

Type: Task Priority: Minor
Reporter: Eugene Kosov (Inactive) Assignee: Sergei Golubchik
Resolution: Unresolved Votes: 0
Labels: refactoring

Issue Links:
Relates
relates to MDEV-22438 add a function similar to std::make_s... Closed

 Description   

Some class should store an old value and change it's value to a new/tmp value in ctor, and restore an old value in dtor.



 Comments   
Comment by Eugene Kosov (Inactive) [ 2021-12-03 ]

https://github.com/MariaDB/server/commits/bb-10.7-MDEV-22441-scoped-variable

Comment by Eugene Kosov (Inactive) [ 2022-01-16 ]

Rebased onto 10.8 https://github.com/MariaDB/server/commits/bb-10.8-MDEV-22441-scoped-variable

Generated at Thu Feb 08 09:14:45 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.