*** empty log message ***

svn path=/trunk/boinc/; revision=4240
This commit is contained in:
David Anderson 2004-09-24 21:28:12 +00:00
parent 05d88017ff
commit 6e94de0a6c
7 changed files with 34 additions and 10 deletions

View File

@ -17717,3 +17717,18 @@ David 24 Sept 2004
lib/
filesys.C
David 24 Sept 2004
- added a <dont_generate_file_upload_certificates/> option to config.xml.
If set, no upload certificates will be generated for results.
This will make the transitioner run faster.
If you use this, you must set <ignore_upload_certificates/>
immediately, and leave it on for a couple of weeks
even after start generating upload certificates again.
sched/
sched_config.C,h
transitioner.C
tools/
backend_lib.C,h
process_result_template.C

View File

@ -70,6 +70,9 @@ int SCHED_CONFIG::parse(char* buf) {
if (match_tag(buf, "<ignore_upload_certificates/>")) {
ignore_upload_certificates = true;
}
if (match_tag(buf, "<dont_generate_upload_certificates/>")) {
dont_generate_upload_certificates = true;
}
#if 0
if (match_tag(buf, "<deletion_policy_priority/>")) {
deletion_policy_priority = true;

View File

@ -46,6 +46,7 @@ public:
bool homogeneous_redundancy;
bool locality_scheduling;
bool ignore_upload_certificates;
bool dont_generate_upload_certificates;
bool enforce_delay_bound;
#if 0
bool deletion_policy_priority;

View File

@ -254,7 +254,7 @@ int handle_wu(
#ifdef BATCH_INSERT
retval = create_result(
wu_item.id, wu_item.appid, wu_item.name,
rtfpath, suffix, key, config.upload_url, value_buf
rtfpath, suffix, key, config, value_buf
);
if (retval) {
log_messages.printf(
@ -273,7 +273,7 @@ int handle_wu(
#else
retval = create_result(
wu_item.id, wu_item.appid, wu_item.name,
rtfpath, suffix, key, config.upload_url, 0
rtfpath, suffix, key, config, 0
);
if (retval) {
log_messages.printf(

View File

@ -235,7 +235,7 @@ int create_result(
char* result_template_filename,
char* result_name_suffix,
R_RSA_PRIVATE_KEY& key,
char* upload_url,
SCHED_CONFIG& config,
char* query_string
// if nonzero, write value list here; else do insert
) {
@ -262,7 +262,7 @@ int create_result(
result_template,
key,
base_outfile_name,
upload_url
config
);
if (strlen(result_template) > sizeof(result.xml_doc_in)-1) {
fprintf(stderr,

View File

@ -31,7 +31,7 @@ extern int process_result_template(
char* result_template,
R_RSA_PRIVATE_KEY& key,
char* base_filename,
char* upload_url
SCHED_CONFIG& config
);
extern int read_file(FILE*, char* buf);
@ -46,7 +46,7 @@ extern int create_result(
char* result_template_filename,
char* suffix,
R_RSA_PRIVATE_KEY& key,
char* upload_url,
SCHED_CONFIG& config,
char* query_string=0
);

View File

@ -24,6 +24,7 @@
#include "boinc_db.h"
#include "error_numbers.h"
#include "parse.h"
#include "sched_config.h"
#include "crypt.h"
#ifdef _USING_FCGI_
@ -120,12 +121,12 @@ int process_result_template(
char* result_template,
R_RSA_PRIVATE_KEY& key,
char* base_filename,
char* upload_url
SCHED_CONFIG& config
) {
char* p,*q;
char temp[LARGE_BLOB_SIZE];
char num;
int i;
int i, retval;
while (1) {
p = strstr(result_template, OUTFILE_MACRO);
@ -142,11 +143,15 @@ int process_result_template(
p = strstr(result_template, UPLOAD_URL_MACRO);
if (p) {
strcpy(temp, p+strlen(UPLOAD_URL_MACRO));
strcpy(p, upload_url);
strcpy(p, config.upload_url);
strcat(p, temp);
continue;
}
break;
}
return add_signatures(result_template, key);
if (!config.dont_generate_upload_certificates) {
retval = add_signatures(result_template, key);
if (retval) return retval;
}
return 0;
}