Fix warning of passing const to non-const parameter.
Function FaultInjectorIdentifierStringToEnum(faultName) pass a const string to a non-const parameter, which cause a build warnig. But on the second thought, we have supported injecting fault by fault name without corresponding fault identifier, so it's better to use faultname instead of fault enum identifier in the ereport.
Showing
想要评论请 注册 或 登录