- Timestamp:
- May 26, 2009, 1:59:32 PM (17 years ago)
- Location:
- branches/cnb_branches/cnb_branch_20090301
- Files:
-
- 3 edited
-
. (modified) (1 prop)
-
ippTools/src (modified) (1 prop)
-
ippTools/src/magicdstool.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/cnb_branches/cnb_branch_20090301
- Property svn:mergeinfo changed
-
branches/cnb_branches/cnb_branch_20090301/ippTools/src
- Property svn:ignore
-
old new 33 33 pstamptool 34 34 disttool 35 receivetool
-
- Property svn:ignore
-
branches/cnb_branches/cnb_branch_20090301/ippTools/src/magicdstool.c
r23594 r24244 398 398 PXOPT_COPY_S64(config->args, where, "-magic_ds_id", "magic_ds_id", "=="); 399 399 PXOPT_COPY_S64(config->args, where, "-magic_id", "magic_id", "=="); 400 PXOPT_COPY_STR(config->args, where, "-label", "label", "==");400 pxAddLabelSearchArgs (config, where, "-label", "label", "=="); 401 401 402 402 PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false); … … 599 599 600 600 // default values 601 PXOPT_LOOKUP_S16( code, config->args, "-code", false, false);601 PXOPT_LOOKUP_S16(fault, config->args, "-fault", false, false); 602 602 PXOPT_LOOKUP_STR(backup_path_base, config->args, "-backup_path_base", false, false); 603 603 PXOPT_LOOKUP_STR(recovery_path_base, config->args, "-recovery_path_base", false, false); 604 604 PXOPT_LOOKUP_BOOL(setmagicked, config->args, "-setmagicked", false); 605 605 606 if (setmagicked && ( code!= 0)) {606 if (setmagicked && (fault != 0)) { 607 607 psError(PS_ERR_UNKNOWN, true, " cannot setmagicked for faulted file"); 608 608 return false; … … 625 625 } 626 626 627 if (!magicDSFileInsert(config->dbh, magic_ds_id, component, backup_path_base, recovery_path_base, code)) {627 if (!magicDSFileInsert(config->dbh, magic_ds_id, component, backup_path_base, recovery_path_base, fault)) { 628 628 // rollback 629 629 if (!psDBRollback(config->dbh)) { … … 781 781 PXOPT_COPY_S64(config->args, where, "-magic_ds_id", "magic_ds_id", "=="); 782 782 PXOPT_COPY_STR(config->args, where, "-component", "component", "=="); 783 PXOPT_COPY_S16(config->args, where, "- code", "fault", "==");783 PXOPT_COPY_S16(config->args, where, "-fault", "fault", "=="); 784 784 785 785 psString query = psStringCopy("DELETE FROM magicDSFile WHERE fault != 0");
Note:
See TracChangeset
for help on using the changeset viewer.
