*** empty log message ***

svn path=/trunk/boinc/; revision=4709
This commit is contained in:
David Anderson 2004-12-02 22:24:53 +00:00
parent 088d462e36
commit 1dd3076855
2 changed files with 38 additions and 0 deletions

View File

@ -20544,3 +20544,15 @@ Rom 2 Dec 2004
taskbarex.cpp
lib/
stackwalker_win.cpp
David 2 Dec 2004
- added script for fixing the problem where some workunits
have target_nresults successful results and no consensus.
The script finds WUs in this state and sets their need_validate flag;
the validator (MAKE SURE YOU'VE RECOMPILED WITH CURRENT SOURCE)
will increment target_nresults and trigger the transitioner,
which will create a new result.
html/ops/
repair_validator_problem.php

View File

@ -0,0 +1,26 @@
<?php
set_time_limit(0);
require_once("../inc/db.inc");
db_init();
$result = mysql_query("select * from workunit where canonical_resultid=0");
while ($wu = mysql_fetch_object($result)) {
$r2 = mysql_query("select count(*) from result where workunitid=$wu->id and outcome=1 limit 1000");
$x = mysql_fetch_array($r2);
mysql_free_result($r2);
$nsuccess = $x[0];
$r2 = mysql_query("select count(*) from result where workunitid=$wu->id and server_state=2");
$x = mysql_fetch_array($r2);
mysql_free_result($r2);
$nunsent = $x[0];
if ($nsuccess==3 and $nunsent==0) {
echo "WU $wu->id has $nsuccess success, $nunsent unsent \n";
mysql_query("update workunit set need_validate=1 where id=$wu->id");
}
}
?>