- Timestamp:
- Mar 28, 2015, 8:24:37 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20150112/ippTools/src/difftool.c
r36572 r38049 42 42 static bool definepoprunMode(pxConfig *config); 43 43 static bool definewarpstackMode(pxConfig *config); 44 //static bool definewarpstackOldMethodMode(pxConfig *config); 44 45 static bool definewarpwarpMode(pxConfig *config); 45 46 static bool definestackstackMode(pxConfig *config); … … 95 96 MODECASE(DIFFTOOL_MODE_DEFINEPOPRUN, definepoprunMode); 96 97 MODECASE(DIFFTOOL_MODE_DEFINEWARPSTACK, definewarpstackMode); 98 // MODECASE(DIFFTOOL_MODE_DEFINEWARPSTACKOLDMETHOD, definewarpstackOldMethodMode); 97 99 MODECASE(DIFFTOOL_MODE_DEFINEWARPWARP, definewarpwarpMode); 98 100 MODECASE(DIFFTOOL_MODE_DEFINESTACKSTACK, definestackstackMode); … … 1233 1235 1234 1236 PXOPT_COPY_S64(config->args, where, "-exp_id", "exp_id", "=="); 1235 PXOPT_COPY_STR(config->args, where, "-filter", " filter", "==");1237 PXOPT_COPY_STR(config->args, where, "-filter", "rawExp.filter", "=="); 1236 1238 PXOPT_COPY_STR(config->args, where, "-comment", "comment", "LIKE"); 1237 1239 PXOPT_COPY_S64(config->args, where, "-warp_id", "warpRun.warp_id", "=="); … … 1244 1246 PXOPT_COPY_STR(config->args, where, "-stack_data_group", "stackRun.data_group", "=="); 1245 1247 1248 // Add position dependence here. 1249 if (!pxspaceBoxAddWhere(config,where)) { 1250 psError(psErrorCodeLast(), false, "pxSpaceBoxAddWhere failed"); 1251 return false; 1252 } 1253 1254 // PXOPT_LOOKUP_BOOL(available, config->args, "-available", false); 1246 1255 PXOPT_LOOKUP_BOOL(bothways, config->args, "-bothways", false); 1247 1256 … … 1275 1284 1276 1285 psString whereClause = psDBGenerateWhereConditionSQL(where,NULL); 1286 psString diffWhereClause = psStringCopy(""); 1287 psString joinWhereClause = psStringCopy(""); 1277 1288 1278 1289 // Don't queue things that already have diffs. 1279 1290 if (! (reRun || newTemplates) ) { 1280 psStringAppend(& whereClause, "\nAND diff_id IS NULL\n");1291 psStringAppend(&joinWhereClause, "\nAND diff_id IS NULL\n"); 1281 1292 } 1282 1293 // Append diff qualifiers, if we have them 1283 1294 if (label) { 1284 psStringAppend(& whereClause, "\nAND ((diffRun.label = '%s') OR (diffRun.label IS NULL))",label);1295 psStringAppend(&diffWhereClause, "\nAND ((diffRun.label = '%s') OR (diffRun.label IS NULL))",label); 1285 1296 } 1286 1297 if (data_group) { 1287 psStringAppend(& whereClause, "\nAND ((diffRun.data_group = '%s') OR (diffRun.data_group IS NULL))",data_group);1298 psStringAppend(&diffWhereClause, "\nAND ((diffRun.data_group = '%s') OR (diffRun.data_group IS NULL))",data_group); 1288 1299 } 1289 1300 if (reduction) { 1290 psStringAppend(& whereClause, "\nAND ((diffRun.reduction = '%s') OR (diffRun.reduction IS NULL))",reduction);1301 psStringAppend(&diffWhereClause, "\nAND ((diffRun.reduction = '%s') OR (diffRun.reduction IS NULL))",reduction); 1291 1302 } 1292 1303 … … 1296 1307 1297 1308 // This is just a simple query, so we don't need to do a transaction 1298 if (!p_psDBRunQueryF(config->dbh, query, whereClauseString )) {1309 if (!p_psDBRunQueryF(config->dbh, query, whereClauseString, diffWhereClause,joinWhereClause)) { 1299 1310 psError(PS_ERR_UNKNOWN, false, "database error"); 1300 1311 psFree(query); … … 1327 1338 return true; 1328 1339 } 1340 1329 1341 if (pretend) { 1330 1342 // negative simple so the default is true … … 1518 1530 1519 1531 #if (0) 1520 static bool definewarpstack Mode(pxConfig *config)1532 static bool definewarpstackOldMethodMode(pxConfig *config) 1521 1533 { 1522 1534 PS_ASSERT_PTR_NON_NULL(config, false); … … 1530 1542 PXOPT_COPY_STR(config->args, expWhere, "-filter", "filter", "=="); 1531 1543 PXOPT_COPY_STR(config->args, expWhere, "-comment", "comment", "LIKE"); 1544 1532 1545 PXOPT_COPY_S64(config->args, warp1Where, "-warp_id", "warpRun.warp_id", "=="); 1533 1546 PXOPT_COPY_STR(config->args, warp1Where, "-warp_label", "warpRun.label", "=="); … … 1798 1811 } 1799 1812 1813 // CZW force available off. If we're using this very-expensive mode, we need to get the one thing it does correctly. 1814 available = false;; 1800 1815 if (!available && (num != skycell_count)) { 1801 1816 psTrace("difftool", PS_LOG_INFO, "%" PRId64 " skyfiles with stack found for warp_id %" PRId64
Note:
See TracChangeset
for help on using the changeset viewer.
