Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
maestro-core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
maestro
maestro-core
Commits
029687e8
Commit
029687e8
authored
3 years ago
by
Christopher Haine
Browse files
Options
Downloads
Patches
Plain Diff
fix guided io hint logic
parent
bb999b4d
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!13
Draft: Resolve "Job Failed #282354 -- needs update of MIO interface and build rules"
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
transport/mio.c
+6
-4
6 additions, 4 deletions
transport/mio.c
with
6 additions
and
4 deletions
transport/mio.c
+
6
−
4
View file @
029687e8
...
@@ -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
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment