PT-1760 Updated DSNParser module

This commit is contained in:
Carlos Salguero
2019-10-01 08:26:42 -03:00
parent 4fc3d9fd1f
commit 522f8c5821
23 changed files with 585 additions and 51 deletions

View File

@@ -175,6 +175,16 @@ sub parse {
}
}
# The Perl MySQL driver will override the values from the options file with the other
# values specified in the DSN. For us, if the user specified the F parameter, we only
# want options to be loaded from the config file.
# This is important because if for example, the user specifies F for the --check-slave-lag
# paramteter and we don't clean up the other options, the other DSN parameters will be
# inherited from the master and we don't want that.
if ($final_props{F}) {
%final_props = ( 'F' => $final_props{F} );
}
return \%final_props;
}