signals - Global flag to revert to original logic in C -


i've been asked supervisor prepare solution in multiple pieces of logic throughout our application can reverted earlier piece of code while application live. in effect, need prepare flag or indicator can dynamically activated switch instances of code in our application, new version old one.

the new logic prepared new member of our team , concerned memory leaks emerge once code goes production, , want solution in place allow turn changes off , return original code if necessary.

 if (new_code == on)  {     new logic  }  else  {     old logic  } 

this project meant rid of build , compile warnings during our build process affects code ranging function arguments variable declarations, there's no 1 single type of code affected. running off tuxedo stack implementing tuxedo config file effect change isn't recommended according 1 of our senior developers. i'm not aware of similar solution, though.

any ideas? thanks!

would work? sure. idea? no. have risk of new code, plus risk of bugs in switch code, plus risk of happens if switch 1 other in mid-run. shouldn't doing this, far more cause trouble deploying changes directly.

what should do- if you're concerned it, don't deploy it. put through additional testing until you're comfortable it. when deploy it, have plan roll previous version without these changes if slips through testing.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -