IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 10, 2010, 4:05:44 PM (16 years ago)
Author:
eugene
Message:

updates from trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20091201/ippTools/src/magictool.c

    r26185 r26865  
    619619        return false;
    620620    }
     621    psS32 numUpdated = psDBAffectedRows(config->dbh);
     622    psLogMsg("magictool", PS_LOG_INFO, "Reverted %d magic runs", numUpdated);
     623
    621624    return true;
    622625}
     
    874877
    875878    // look for tree nodes that need to be processed
     879
     880    // first find incomplete magicRuns
    876881    query = pxDataGet("magictool_toprocess_runs.sql");
    877882    if (!query) {
     
    880885    }
    881886
     887    // we limit the query even though it is cheap (only magic_id is selected)
     888
     889    // XXX: if the first 1000 unfinished magicRuns have no ready nodes
     890    // that haven't faulted, later runs won't get returned even though
     891    // they have work to do. When we used a limit of 100 we actually ran
     892    // into this problem. Since we're using labels a limit of 1000 will
     893    // probably be ok.
    882894    {
    883         psString limitString = psDBGenerateLimitSQL( 100 );
     895        psString limitString = psDBGenerateLimitSQL( 1000 );
    884896        psStringAppend(&query, " %s", limitString);
    885897        psFree(limitString);
     
    10741086
    10751087    psS32 numUpdated = psDBAffectedRows(config->dbh);
    1076     psLogMsg("magictool", PS_LOG_INFO, "Updated %d magic nodes", numUpdated);
     1088    psLogMsg("magictool", PS_LOG_INFO, "Reverted %d magic nodes", numUpdated);
    10771089
    10781090    return true;
Note: See TracChangeset for help on using the changeset viewer.