mirror of https://github.com/BOINC/boinc.git
An E@H specific hack
If deleting a file with name matching pattern h1_XXXX.XX_S5R2 generate corresponding l1_h1_XXXX.XX_S5R2 pattern and delete it also This is needed because E@H is doing file locality scheduling with PAIRS h1_... and l1_... of files. Yuk. svn path=/trunk/boinc/; revision=13087
This commit is contained in:
parent
121265db2f
commit
204a88ceda
|
@ -1119,7 +1119,21 @@ void send_work_locality(
|
|||
log_messages.printf(
|
||||
SCHED_MSG_LOG::MSG_DEBUG,
|
||||
"[HOST#%d]: delete file %s (not needed)\n", reply.host.id, fi.name
|
||||
);
|
||||
);
|
||||
#ifdef EINSTEIN_AT_HOME
|
||||
// For name matching pattern h1_XXXX.XX_S5R2
|
||||
// generate corresponding l1_h1_XXXX.XX_S5R2 pattern and delete it also
|
||||
//
|
||||
if (strlen(fi.name)==15 && !strncmp("h1_", fi.name, 3)) {
|
||||
FILE_INFO fi_l = fi;
|
||||
fi_l.name[0]='l';
|
||||
reply.file_deletes.push_back(fi_l);
|
||||
log_messages.printf(
|
||||
SCHED_MSG_LOG::MSG_DEBUG,
|
||||
"[HOST#%d]: delete file %s (not needed)\n", reply.host.id, fi_l.name
|
||||
);
|
||||
}
|
||||
#endif
|
||||
} // nsent==0
|
||||
} // loop over files already on the host
|
||||
|
||||
|
|
Loading…
Reference in New Issue