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

implicit MIO transport if guided IO attribute set

parent 029687e8
No related branches found
No related tags found
1 merge request!13Draft: Resolve "Job Failed #282354 -- needs update of MIO interface and build rules"
......@@ -456,6 +456,22 @@ mstro_pc__handle_initiate_transfer(const Mstro__Pool__InitiateTransfer* init)
DEBUG("Source CDO empty, doing NULL transfer\n");
realsize = 0;
}
mstro_status swhere=MSTRO_UNIMPL;
mstro_status shot=MSTRO_UNIMPL;
const void *hint_where_ptr=NULL;
swhere = mstro_attribute_dict_get(src_cdo->attributes,
".maestro.core.cdo.mio.hint.where",
&vt, &hint_where_ptr, NULL, false);
const void *hint_hot_ptr=NULL;
shot = mstro_attribute_dict_get(src_cdo->attributes,
".maestro.core.cdo.mio.hint.hot-index",
&vt, &hint_hot_ptr, NULL, false);
if (swhere == MSTRO_OK || shot == MSTRO_OK) {
init->methods->supported[0] = MSTRO__POOL__TRANSPORT_KIND__MIO;
DEBUG("MIO guided IO attribute set, implicitly switching to MIO transport\n");
}
if ( init->methods->supported[0] == MSTRO__POOL__TRANSPORT_KIND__MIO
&& (!g_mio_available || (realsize % getpagesize()) != 0 )
){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment