Changeset 18659 for branches/eam_branch_20080719/ippTools/src/stacktool.c
- Timestamp:
- Jul 22, 2008, 9:10:30 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20080719/ippTools/src/stacktool.c
r18643 r18659 278 278 279 279 // create a new stackRun for this stack 280 stackRunRow *run = stackRunRowAlloc(0, "run", workdir, NULL, registered, skycell_id, tess_id, filter); 280 stackRunRow *run = stackRunRowAlloc( 281 0, // ID 282 "new", // state 283 workdir, 284 NULL, // workdir_state 285 registered, 286 skycell_id, 287 tess_id, 288 filter); 289 281 290 if (!stackRunInsertObject(config->dbh, run)) { 282 291 if (!psDBRollback(config->dbh)) { … … 363 372 } 364 373 365 stackRunRow *run = stackRunRowAlloc(0, "run", workdir, NULL, registered, skycell_id, tess_id, filter); 374 stackRunRow *run = stackRunRowAlloc( 375 0, // ID 376 "new", // state 377 workdir, 378 NULL, // workdir_state 379 registered, 380 skycell_id, 381 tess_id, 382 filter); 383 366 384 if (!run) { 367 385 psError(PS_ERR_UNKNOWN, false, "failed to alloc stackRun object"); … … 656 674 } 657 675 658 if (!setstackRunState(config, stack_id, " stop")) {676 if (!setstackRunState(config, stack_id, "full")) { 659 677 if (!psDBRollback(config->dbh)) { 660 678 psError(PS_ERR_UNKNOWN, false, "database error"); … … 788 806 789 807 // check that state is a valid string value 790 if (!( 791 (strncmp(state, "run", 4) == 0) 792 || (strncmp(state, "stop", 5) == 0) 793 || (strncmp(state, "reg", 4) == 0) 794 ) 795 ) { 796 psError(PS_ERR_UNKNOWN, false, 797 "invalid warpRun state: %s", state); 808 if (!pxIsValidState(state)) { 809 psError(PS_ERR_UNKNOWN, false, "invalid stackRun state: %s", state); 798 810 return false; 799 811 }
Note:
See TracChangeset
for help on using the changeset viewer.
