- db_purge: record result and workunit name in index file

svn path=/trunk/boinc/; revision=25344
This commit is contained in:
Bernd Machenschalk 2012-02-27 11:08:14 +00:00
parent dc4584156d
commit 7de8d05277
2 changed files with 20 additions and 8 deletions

View File

@ -2214,3 +2214,10 @@ David 24 Feb 2012
sched/
sched_version.cpp
Bernd 27 feb 2012
- db_purge: record result and workunit name in index file
sched/
db_purge.cpp

View File

@ -344,10 +344,13 @@ int archive_result(DB_RESULT& result) {
"</result_archive>\n"
);
if (n >= 0) n = fprintf(re_index_stream,
"%d %d\n",
result.id, time_int
if (n >= 0) {
n = fprintf(re_index_stream,
"%d %d %s\n",
result.id, time_int, result.name
);
}
if (n < 0) fail("fprintf() failed\n");
return 0;
@ -421,10 +424,12 @@ int archive_wu(DB_WORKUNIT& wu) {
"</workunit_archive>\n"
);
if (n >= 0) n = fprintf(wu_index_stream,
"%d %d\n",
wu.id, time_int
if (n >= 0) {
n = fprintf(wu_index_stream,
"%d %d %s\n",
wu.id, time_int, wu.name
);
}
if (n < 0) fail("fprintf() failed\n");