scheduler: as db-driven client file management isn't ready yet,

adapt Einstein@home-specific file management hack to current run

svn path=/trunk/boinc/; revision=21172
This commit is contained in:
Bernd Machenschalk 2010-04-13 14:24:40 +00:00
parent db6f3b13bb
commit 061601fe28
2 changed files with 22 additions and 7 deletions

View File

@ -2749,3 +2749,11 @@ Charlie 13 Apr 2010
lib/ lib/
procinfo_mac.cpp procinfo_mac.cpp
procinfo_win.cpp procinfo_win.cpp
Bernd 13 Apr 2010
- scheduler: as db-driven client file management isn't ready yet,
adapt Einstein@home-specific file management hack to current run
sched/
sched_locality.cpp

View File

@ -1174,17 +1174,24 @@ void send_work_locality() {
); );
} }
#ifdef EINSTEIN_AT_HOME #ifdef EINSTEIN_AT_HOME
// For name matching pattern h1_XXXX.XX_S5R2 // For name matching pattern h1_XXXX.XX_S5R4
// generate corresponding l1_XXXX.XX_S5R2 pattern and delete it also // generate corresponding l1_XXXX.XX_S5R4 and *_S5R7 patterns and delete it also
// //
if (strlen(fi.name)==15 && !strncmp("h1_", fi.name, 3)) { if (strlen(fi.name)==15 && !strncmp("h1_", fi.name, 3)) {
FILE_INFO fi_l = fi; FILE_INFO fil4,fil7,fih7;
fi_l.name[0]='l'; fil4=fi;
g_reply->file_deletes.push_back(fi_l); fil4.name[0]='l';
fil7=fil4;
fil7.name[14]='7';
fih7=fi;
fih7.name[14]='7';
g_reply->file_deletes.push_back(fil4);
g_reply->file_deletes.push_back(fil7);
g_reply->file_deletes.push_back(fih7);
if (config.debug_locality) { if (config.debug_locality) {
log_messages.printf(MSG_NORMAL, log_messages.printf(MSG_NORMAL,
"[locality] [HOST#%d]: delete file %s (not needed)\n", "[locality] [HOST#%d]: delete files %s,%s,%s (not needed)\n",
g_reply->host.id, fi_l.name g_reply->host.id, fil4.name,fil7.name,fih7.name
); );
} }
} }