*** empty log message ***

svn path=/trunk/boinc/; revision=9157
This commit is contained in:
David Anderson 2005-12-28 19:59:05 +00:00
parent 21719d6e62
commit c3b2d71261
3 changed files with 25 additions and 8 deletions

View File

@ -14841,3 +14841,8 @@ Rom 28 Dec 2005 (HEAD)
- Tag for 5.3.6 release, all platforms - Tag for 5.3.6 release, all platforms
boinc_core_release_5_3_6 boinc_core_release_5_3_6
David 28 Dec 2005
- core client: don't print erroneous messages on update project
client/
gui_rpc_server_ops.C

View File

@ -166,21 +166,28 @@ static void handle_result_show_graphics(char* buf, MIOFILE& fout) {
static void handle_project_op(char* buf, MIOFILE& fout, const char* op) { static void handle_project_op(char* buf, MIOFILE& fout, const char* op) {
int retval; int retval;
bool reschedule=false, write_state=false;
PROJECT* p = get_project(buf, fout); PROJECT* p = get_project(buf, fout);
if (!p) { if (!p) {
fout.printf("<error>no such project</error>\n"); fout.printf("<error>no such project</error>\n");
return; return;
} }
if (!strcmp(op, "reset")) { if (!strcmp(op, "reset")) {
gstate.reset_project(p); gstate.request_schedule_cpus("project reset by user");
gstate.reset_project(p); // writes state file
} else if (!strcmp(op, "suspend")) { } else if (!strcmp(op, "suspend")) {
if (p->non_cpu_intensive) { if (p->non_cpu_intensive) {
msg_printf(p, MSG_ERROR, "Can't suspend non-CPU-intensive project"); msg_printf(p, MSG_ERROR, "Can't suspend non-CPU-intensive project");
} else { } else {
p->suspended_via_gui = true; p->suspended_via_gui = true;
gstate.request_schedule_cpus("project suspended by user");
gstate.set_client_state_dirty("Project suspended by user");
} }
} else if (!strcmp(op, "resume")) { } else if (!strcmp(op, "resume")) {
p->suspended_via_gui = false; p->suspended_via_gui = false;
gstate.request_schedule_cpus("project resumed by user");
gstate.set_client_state_dirty("Project resumed by user");
} else if (!strcmp(op, "detach")) { } else if (!strcmp(op, "detach")) {
if (p->attached_via_acct_mgr) { if (p->attached_via_acct_mgr) {
msg_printf(p, MSG_ERROR, msg_printf(p, MSG_ERROR,
@ -189,7 +196,7 @@ static void handle_project_op(char* buf, MIOFILE& fout, const char* op) {
fout.printf("<error>must detach using account manager</error>"); fout.printf("<error>must detach using account manager</error>");
return; return;
} }
gstate.detach_project(p); gstate.detach_project(p); // writes state file
// if project_init.xml refers to this project, // if project_init.xml refers to this project,
// delete the file, otherwise we'll just // delete the file, otherwise we'll just
@ -203,16 +210,18 @@ static void handle_project_op(char* buf, MIOFILE& fout, const char* op) {
); );
} }
} }
gstate.request_schedule_cpus("project detached by user");
} else if (!strcmp(op, "update")) { } else if (!strcmp(op, "update")) {
p->sched_rpc_pending = true; p->sched_rpc_pending = true;
p->min_rpc_time = 0; p->min_rpc_time = 0;
gstate.set_client_state_dirty("Project updated by user");
} else if (!strcmp(op, "nomorework")) { } else if (!strcmp(op, "nomorework")) {
p->dont_request_more_work = true; p->dont_request_more_work = true;
} else if (!strcmp(op, "allowmorework")) { gstate.set_client_state_dirty("Project modified by user");
p->dont_request_more_work = false; } else if (!strcmp(op, "allowmorework")) {
} p->dont_request_more_work = false;
gstate.request_schedule_cpus("project suspended, resumed or detached by user"); gstate.set_client_state_dirty("Project modified by user");
gstate.set_client_state_dirty("Project RPC"); }
fout.printf("<success/>\n"); fout.printf("<success/>\n");
} }

View File

@ -189,6 +189,9 @@ MySQL performance.
For example, read about the For example, read about the
<a href=http://dev.mysql.com/tech-resources/articles/mysql-query-cache.html>MySQL query cache</a>. <a href=http://dev.mysql.com/tech-resources/articles/mysql-query-cache.html>MySQL query cache</a>.
<li>
<a href=mysql_cluster.txt>Notes on running MySQL on a cluster</a>.
</ul> </ul>
<h3>MySQLclient notes</h3> <h3>MySQLclient notes</h3>
<ul> <ul>