radondb-mysql-kubernetes icon indicating copy to clipboard operation
radondb-mysql-kubernetes copied to clipboard

[feature] optimize code on install tokudb in init.go

Open hustjieke opened this issue 2 years ago • 0 comments

Is your feature request related to a problem? Please describe.

                cmd.Stderr = os.Stderr
                if err = cmd.Run(); err != nil {
                        return fmt.Errorf("failed to disable the transparent_hugepage: %s", err)
                }   

Describe the solution you'd like

use cmd.CombinedOutput() instead of cmd.Stderr = os.Stderr cmd.Run()

Describe alternatives you've considered

Additional context

hustjieke avatar Aug 04 '21 08:08 hustjieke