Skip to content
Snippets Groups Projects
Commit 029687e8 authored by Christopher Haine's avatar Christopher Haine
Browse files

fix guided io hint logic

parent bb999b4d
No related branches found
No related tags found
1 merge request!13Draft: Resolve "Job Failed #282354 -- needs update of MIO interface and build rules"
...@@ -157,8 +157,9 @@ int hints_attributes_set(struct mio_hints* hints, mstro_cdo_attributes attr) ...@@ -157,8 +157,9 @@ int hints_attributes_set(struct mio_hints* hints, mstro_cdo_attributes attr)
s = mstro_attribute_dict_get(attr, s = mstro_attribute_dict_get(attr,
".maestro.core.cdo.mio.hint.where", ".maestro.core.cdo.mio.hint.where",
&vt, &hint_where_ptr, NULL, false); &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"); DEBUG("No `WHERE` mio hint set\n");
goto HINT_HOT;
} }
if(s!=MSTRO_OK) { if(s!=MSTRO_OK) {
ERR("Failed to check `WHERE` mio hint on CDO\n"); 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) ...@@ -172,13 +173,14 @@ int hints_attributes_set(struct mio_hints* hints, mstro_cdo_attributes attr)
} else { } else {
DEBUG("Set MIO WHERE to %d\n", hint_where); DEBUG("Set MIO WHERE to %d\n", hint_where);
} }
HINT_HOT: ;
const void *hint_hot_ptr=NULL; const void *hint_hot_ptr=NULL;
s = mstro_attribute_dict_get(attr, s = mstro_attribute_dict_get(attr,
".maestro.core.cdo.mio.hint.hot-index", ".maestro.core.cdo.mio.hint.hot-index",
&vt, &hint_hot_ptr, NULL, false); &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"); DEBUG("No `HOT-INDEX` mio hint set\n");
goto BAILOUT;
} }
if(s!=MSTRO_OK) { if(s!=MSTRO_OK) {
ERR("Failed to check `HOT-INDEX` mio hint on CDO\n"); 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) ...@@ -192,7 +194,7 @@ int hints_attributes_set(struct mio_hints* hints, mstro_cdo_attributes attr)
} else { } else {
DEBUG("Set MIO HOT INDEX to %d\n", hint_hot); DEBUG("Set MIO HOT INDEX to %d\n", hint_hot);
} }
BAILOUT:
return 0; return 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment