On 11/11/2010 01:58 PM, Patrick Crews wrote: > When we start a server with test-run.pl <http://test-run.pl>, the > program automatically sets --secure-file-priv=$VARDIR. > > However, there are times when we might want to have another directory > used for that option. For example, if we use BLOB/TEXT columns with the > randgen, it loads from files within the randgen's directory (the randgen > code is set up this way). However, if we try to pass an additional > --secure-file-priv argument, the server will not start due to there > being duplicate arguments: > > terminate called after throwing an instance of > 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::program_options::multiple_occurrences> >>' > what(): multiple occurrences > Note: Forcing kill of process 22562 > > We can code around this in test-run - if we get passed a command line > option for --secure-file-priv, we won't add the option to set it to > $VARDIR. This seems a bit hackish to me though. > > Is this expected behavior and do we have any other options here?
Well, yes and no. a) I need to catch that exception and give a proper error message... b) Do you want secure-file-priv to support multiple valid values? Such as --secure-file-priv=/dir/one --secure-file-priv=/dir/two and that would mean that both /dir/one and /dir/two qualify? (I don't have an opinion on that) c) If you don't and just want the MySQL last-given wins behavior, we're not supporting that at all. With reading dirs of config files (and possibly pluggable config sources), assuming ordering is just going to be fail. _______________________________________________ Mailing list: https://launchpad.net/~drizzle-discuss Post to : [email protected] Unsubscribe : https://launchpad.net/~drizzle-discuss More help : https://help.launchpad.net/ListHelp

