- 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/
sched_version.cpp 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" "</result_archive>\n"
); );
if (n >= 0) n = fprintf(re_index_stream, if (n >= 0) {
"%d %d\n", n = fprintf(re_index_stream,
result.id, time_int "%d %d %s\n",
result.id, time_int, result.name
); );
}
if (n < 0) fail("fprintf() failed\n"); if (n < 0) fail("fprintf() failed\n");
return 0; return 0;
@ -421,10 +424,12 @@ int archive_wu(DB_WORKUNIT& wu) {
"</workunit_archive>\n" "</workunit_archive>\n"
); );
if (n >= 0) n = fprintf(wu_index_stream, if (n >= 0) {
"%d %d\n", n = fprintf(wu_index_stream,
wu.id, time_int "%d %d %s\n",
wu.id, time_int, wu.name
); );
}
if (n < 0) fail("fprintf() failed\n"); if (n < 0) fail("fprintf() failed\n");