Changeset 25324 for trunk/ippTools/src/dettool.c
- Timestamp:
- Sep 10, 2009, 12:52:50 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
. (modified) (1 prop)
-
ippTools/src (modified) (1 prop)
-
ippTools/src/dettool.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/czw_branch/cleanup merged: 24713,24743,24785,24835,24902,24913,24951-24952,24972
- Property svn:mergeinfo changed
-
trunk/ippTools/src
- Property svn:ignore
-
old new 34 34 disttool 35 35 receivetool 36 36 addtool 37 37 pubtool
-
- Property svn:ignore
-
trunk/ippTools/src/dettool.c
r24866 r25324 150 150 MODECASE(DETTOOL_MODE_UPDATEDETRUN, updatedetrunMode); 151 151 MODECASE(DETTOOL_MODE_RERUN, rerunMode); 152 MODECASE(DETTOOL_MODE_PENDINGCLEANUP_DETRUNSUMMARY, pendingcleanup_detrunsummaryMode); 152 153 // register 153 154 MODECASE(DETTOOL_MODE_REGISTER_DETREND, register_detrendMode); … … 1827 1828 if (!strcmp(data_state, "drop")) return true; 1828 1829 if (!strcmp(data_state, "register")) return true; 1830 // These are valid data states, and are necessary for the cleanup to work correctly. 1831 if (!strcmp(data_state, "full")) return true; 1832 if (!strcmp(data_state, "goto_cleaned")) return true; 1833 if (!strcmp(data_state, "goto_scrubbed")) return true; 1834 if (!strcmp(data_state, "goto_purged")) return true; 1835 if (!strcmp(data_state, "cleaned")) return true; 1836 if (!strcmp(data_state, "scrubbed")) return true; 1837 if (!strcmp(data_state, "purged")) return true; 1838 if (!strcmp(data_state, "error_cleaned")) return true; 1839 if (!strcmp(data_state, "error_scrubbed")) return true; 1840 if (!strcmp(data_state, "error_purged")) return true; 1829 1841 1830 1842 psError(PS_ERR_UNKNOWN, true, "invalid data state: %s", data_state); … … 1853 1865 1854 1866 if (!isValidDataState (data_state)) return false; 1855 1867 1856 1868 char *query = "UPDATE detProcessedImfile SET data_state = '%s'" 1857 1869 " WHERE det_id = %" PRId64 … … 1900 1912 " WHERE det_id = %" PRId64 1901 1913 " AND iteration = %" PRId32 1902 " AND class_id = %s";1914 " AND class_id = '%s'"; 1903 1915 if (!p_psDBRunQueryF(config->dbh, query, data_state, det_id, iteration, class_id)) { 1904 1916 psError(PS_ERR_UNKNOWN, false, … … 1922 1934 " WHERE det_id = %" PRId64 1923 1935 " AND iteration = %" PRId32 1924 " AND class_id = %s"; 1925 if (!p_psDBRunQueryF(config->dbh, query, data_state, det_id, iteration)) { 1936 " AND class_id = '%s'"; 1937 /* fprintf(stderr,"DETTOOL SAYS: %s\n",query); */ 1938 if (!p_psDBRunQueryF(config->dbh, query, data_state, det_id, iteration,class_id)) { 1926 1939 psError(PS_ERR_UNKNOWN, false, 1927 1940 "failed to change state for det_id %" PRId64 ", iteration %" PRId32, … … 1944 1957 " WHERE det_id = %" PRId64 1945 1958 " AND iteration = %" PRId32 1946 " AND class_id = %s";1959 " AND class_id = '%s'"; 1947 1960 if (!p_psDBRunQueryF(config->dbh, query, data_state, det_id, iteration, class_id)) { 1948 1961 psError(PS_ERR_UNKNOWN, false,
Note:
See TracChangeset
for help on using the changeset viewer.
