Changeset 41549 for trunk/ippTools/src/warptool.c
- Timestamp:
- Apr 9, 2021, 4:44:03 PM (5 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/warptool.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/warptool.c
r40512 r41549 602 602 PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false); 603 603 PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false); 604 PXOPT_LOOKUP_BOOL(all, config->args, "-all", false); 604 605 605 606 // find all rawImfiles matching the default query … … 614 615 psStringAppend(&query, " AND %s", whereClause); 615 616 psFree(whereClause); 617 } else { 618 if (!all) { 619 psError(PXTOOLS_ERR_SYS, false, "unrestricted query not allowed (try -all)"); 620 return false; 621 } 616 622 } 617 623 psFree(where); … … 930 936 PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false); 931 937 PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false); 938 PXOPT_LOOKUP_BOOL(all, config->args, "-all", false); 932 939 933 940 // First find Label's with warpRuns in state new in priority order … … 945 952 psStringAppend(&labelWhereStr, "\n AND %s", whereClause); 946 953 psFree(whereClause); 954 } else { 955 if (!all) { 956 psError(PXTOOLS_ERR_SYS, false, "unrestricted query not allowed (try -all)"); 957 return false; 958 } 947 959 } 948 960 psFree(labelWhere); … … 1645 1657 PS_ASSERT_PTR_NON_NULL(config, NULL); 1646 1658 1659 PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false); 1660 PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false); 1661 1647 1662 psMetadata *where = psMetadataAlloc(); 1648 1663 PXOPT_COPY_S64(config->args, where, "-warp_id", "warpSkyfile.warp_id", "=="); … … 1661 1676 PXOPT_LOOKUP_BOOL(all, config->args, "-all", false); 1662 1677 1663 PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false);1664 PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false);1665 1666 1678 // find all rawImfiles matching the default query 1667 1679 psString query = pxDataGet("warptool_tosummary.sql");
Note:
See TracChangeset
for help on using the changeset viewer.
