[Commits] [Maria-developers] Rev 3353: Performed re-factoring and re-structuring of the code for mwl#248: in file:///home/igor/maria/maria-5.5-mwl248-changes/
tonu at jes.ee
Mon Aug 13 06:47:37 EEST 2012
>>> Better to always use the same code to reset memory than doing it many
>>> different ways. In MySQL code bzero() has been the offical and
>>> recommended way to reset memory.
> Davi> Not anymore, Oracle MySQL has addressed this issue.
> In MariaDB code that is still not the case.
> Personally, I find bzero() easier to read, instead of memset() as
> there is no extra parameter and it's also easier grep for it.
> I assume you agree that for all particular purposes, there is no
> reason to not use bzero() in MariaDB code?
I have one more reason to keep bzero there: "do not touch if it is working". Usual IT rule which is good to follow.
More information about the commits