diff --git a/transport/mio.c b/transport/mio.c index e4832894c0a36a0d89816d141514b50fa2355627..90aa4f78c2ed7459e66f02923e6ea1335a2e6db3 100644 --- a/transport/mio.c +++ b/transport/mio.c @@ -157,8 +157,9 @@ int hints_attributes_set(struct mio_hints* hints, mstro_cdo_attributes attr) s = mstro_attribute_dict_get(attr, ".maestro.core.cdo.mio.hint.where", &vt, &hint_where_ptr, NULL, false); - if(s==MSTRO_NOENT && vt==MSTRO_CDO_ATTR_VALUE_INVALID) { + if(s==MSTRO_NOENT && vt==MSTRO_CDO_ATTR_VALUE_NONE) { DEBUG("No `WHERE` mio hint set\n"); + goto HINT_HOT; } if(s!=MSTRO_OK) { ERR("Failed to check `WHERE` mio hint on CDO\n"); @@ -172,13 +173,14 @@ int hints_attributes_set(struct mio_hints* hints, mstro_cdo_attributes attr) } else { DEBUG("Set MIO WHERE to %d\n", hint_where); } - +HINT_HOT: ; const void *hint_hot_ptr=NULL; s = mstro_attribute_dict_get(attr, ".maestro.core.cdo.mio.hint.hot-index", &vt, &hint_hot_ptr, NULL, false); - if(s==MSTRO_NOENT && vt==MSTRO_CDO_ATTR_VALUE_INVALID) { + if(s==MSTRO_NOENT && vt==MSTRO_CDO_ATTR_VALUE_NONE) { DEBUG("No `HOT-INDEX` mio hint set\n"); + goto BAILOUT; } if(s!=MSTRO_OK) { ERR("Failed to check `HOT-INDEX` mio hint on CDO\n"); @@ -192,7 +194,7 @@ int hints_attributes_set(struct mio_hints* hints, mstro_cdo_attributes attr) } else { DEBUG("Set MIO HOT INDEX to %d\n", hint_hot); } - +BAILOUT: return 0; }