From c3b2d71261f24a045a82c10e3383bf03cfeff633 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 28 Dec 2005 19:59:05 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=9157 --- checkin_notes | 5 +++++ client/gui_rpc_server_ops.C | 25 +++++++++++++++++-------- doc/build.php | 3 +++ 3 files changed, 25 insertions(+), 8 deletions(-) diff --git a/checkin_notes b/checkin_notes index a7f819a673..afd3f43b9d 100755 --- a/checkin_notes +++ b/checkin_notes @@ -14841,3 +14841,8 @@ Rom 28 Dec 2005 (HEAD) - Tag for 5.3.6 release, all platforms 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 diff --git a/client/gui_rpc_server_ops.C b/client/gui_rpc_server_ops.C index 19d0298e82..93e610c1a9 100644 --- a/client/gui_rpc_server_ops.C +++ b/client/gui_rpc_server_ops.C @@ -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) { int retval; + bool reschedule=false, write_state=false; + PROJECT* p = get_project(buf, fout); if (!p) { fout.printf("no such project\n"); return; } 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")) { if (p->non_cpu_intensive) { msg_printf(p, MSG_ERROR, "Can't suspend non-CPU-intensive project"); } else { 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")) { 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")) { if (p->attached_via_acct_mgr) { msg_printf(p, MSG_ERROR, @@ -189,7 +196,7 @@ static void handle_project_op(char* buf, MIOFILE& fout, const char* op) { fout.printf("must detach using account manager"); return; } - gstate.detach_project(p); + gstate.detach_project(p); // writes state file // if project_init.xml refers to this project, // 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")) { p->sched_rpc_pending = true; p->min_rpc_time = 0; + gstate.set_client_state_dirty("Project updated by user"); } else if (!strcmp(op, "nomorework")) { - p->dont_request_more_work = true; - } 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 RPC"); + p->dont_request_more_work = true; + gstate.set_client_state_dirty("Project modified by user"); + } else if (!strcmp(op, "allowmorework")) { + p->dont_request_more_work = false; + gstate.set_client_state_dirty("Project modified by user"); + } fout.printf("\n"); } diff --git a/doc/build.php b/doc/build.php index 66fa9a38e6..22e509eeb3 100644 --- a/doc/build.php +++ b/doc/build.php @@ -189,6 +189,9 @@ MySQL performance. For example, read about the MySQL query cache. +
  • +Notes on running MySQL on a cluster. +

    MySQLclient notes