*** empty log message ***

svn path=/trunk/boinc/; revision=9787
This commit is contained in:
David Anderson 2006-04-03 18:02:48 +00:00
parent b958fe253a
commit 72b6a1d828
2 changed files with 126 additions and 102 deletions

View File

@ -3511,3 +3511,9 @@ Eric 2 Apr 2006
client/
stream.C (new)
David 3 Apr 2006
- Add script to find results with no corresponding workunit
html/ops/
db_cleanse.php

18
html/ops/db_cleanse.php Normal file
View File

@ -0,0 +1,18 @@
<?php
// script to delete results with no corresponding workunit.
// In theory these shouldn't exist,
// but (because of crashes or bugs) they sometimes do.
// db_purge doesn't get rid of them; this does
require_once("../inc/util.inc");
require_once("../inc/db.inc");
set_time_limit(0);
$config = get_config();
$db_name = parse_config($config, "<db_name>");
system("mysql $db_name -e \"select id from workunit\" | tail +2 | sort -n > dbc_wu.dat");
system("mysql $db_name -e \"select workunitid, id from result \" | tail +2 | sort -n > dbc_res.dat");
system("join -v 1 dbc_res.dat dbc_wu.dat > dbc_diff.dat");
?>