Allow to specify etcd URLs for OSDs with http://, do not die with a strange error if -etcd option is missing for fio

This commit is contained in:
Vitaliy Filippov
2021-03-16 12:48:26 +03:00
parent 88671cf745
commit 9ac7e75178
5 changed files with 32 additions and 16 deletions
+7
View File
@@ -117,8 +117,15 @@ static struct fio_option options[] = {
static int sec_setup(struct thread_data *td)
{
sec_options *o = (sec_options*)td->eo;
sec_data *bsd;
if (!o->etcd_host)
{
td_verror(td, EINVAL, "etcd address is missing");
return 1;
}
bsd = new sec_data;
if (!bsd)
{