Changeset 26865 for branches/eam_branches/20091201/ippTools/src/magictool.c
- Timestamp:
- Feb 10, 2010, 4:05:44 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20091201/ippTools/src/magictool.c
r26185 r26865 619 619 return false; 620 620 } 621 psS32 numUpdated = psDBAffectedRows(config->dbh); 622 psLogMsg("magictool", PS_LOG_INFO, "Reverted %d magic runs", numUpdated); 623 621 624 return true; 622 625 } … … 874 877 875 878 // look for tree nodes that need to be processed 879 880 // first find incomplete magicRuns 876 881 query = pxDataGet("magictool_toprocess_runs.sql"); 877 882 if (!query) { … … 880 885 } 881 886 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. 882 894 { 883 psString limitString = psDBGenerateLimitSQL( 100 );895 psString limitString = psDBGenerateLimitSQL( 1000 ); 884 896 psStringAppend(&query, " %s", limitString); 885 897 psFree(limitString); … … 1074 1086 1075 1087 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); 1077 1089 1078 1090 return true;
Note:
See TracChangeset
for help on using the changeset viewer.
