IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 17, 2010, 4:40:03 PM (16 years ago)
Author:
Paul Price
Message:

Reworked all ippTools to put fault=2 (SYS_ERROR) when can't find SQL file (presumably due to NFS problems). Removed DATA_ERROR because ippTools don't work on data (astronomical images or catalogues). This should allow us to turn on revert for fault=2 only.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/pxadd.c

    r25835 r26981  
    124124bool pxaddQueueByCamID(pxConfig *config,
    125125                       psS64 cam_id,
    126                        char *workdir,
    127                        char *reduction,
    128                        char *label,
     126                       char *workdir,
     127                       char *reduction,
     128                       char *label,
    129129                       char *data_group,
    130                        char *dvodb,
     130                       char *dvodb,
    131131                       char *note,
    132                        bool image_only)
     132                       bool image_only)
    133133{
    134134    PS_ASSERT_PTR_NON_NULL(config, false);
     
    140140        psMemSetPersistent(query, true);
    141141        if (!query) {
    142             psError(PXTOOLS_ERR_DATA, false, "failed to retreive SQL statement");
     142            psError(PXTOOLS_ERR_SYS, false, "failed to retreive SQL statement");
    143143            return false;
    144144        }
     
    149149    // on 32/64
    150150    if (!p_psDBRunQueryF(config->dbh, query,
    151                         "new", // state
    152                         workdir  ? workdir   : "NULL",
    153                         "dirty", //workdir_state
    154                         reduction? reduction : "NULL",
    155                         label    ? label     : "NULL",
    156                         data_group ? data_group     : "NULL",
    157                         dvodb    ? dvodb     : "NULL",
    158                         note     ? note     : "NULL",
    159                         image_only,
    160                         (long long) cam_id
     151                        "new", // state
     152                        workdir  ? workdir   : "NULL",
     153                        "dirty", //workdir_state
     154                        reduction? reduction : "NULL",
     155                        label    ? label     : "NULL",
     156                        data_group ? data_group     : "NULL",
     157                        dvodb    ? dvodb     : "NULL",
     158                        note     ? note     : "NULL",
     159                        image_only,
     160                        (long long) cam_id
    161161    )) {
    162162        psError(PS_ERR_UNKNOWN, false, "database error");
Note: See TracChangeset for help on using the changeset viewer.