IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 9, 2009, 2:19:48 PM (17 years ago)
Author:
bills
Message:

Pass information about the paths from the distribution server to the client.
Use these to edit the database dump

File:
1 edited

Legend:

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

    r24109 r24125  
    238238        psFree(output);
    239239
    240         if (!receiveFilesetInsert(config->dbh, 0, source_id, fileset, "reg", NULL, 0)) {
     240        if (!receiveFilesetInsert(config->dbh, 0, source_id, fileset, "reg", NULL, NULL, 0)) {
    241241            psError(PS_ERR_UNKNOWN, false, "Unable to add fileset");
    242242            psFree(source_id_str);
     
    512512    if (psListLength(where->list)) {
    513513        psString whereClause = psDBGenerateWhereConditionSQL(where, NULL);
    514         psStringAppend(&query, " WHERE %s", whereClause);
     514        psStringAppend(&query, " AND %s", whereClause);
    515515        psFree(whereClause);
    516516    }
     
    592592    // to chanage
    593593    PXOPT_LOOKUP_S32(fault, config->args, "-fault", false, false);
    594     PXOPT_LOOKUP_STR(dbinfo_uri, config->args, "-dbinfo_uri", false, false);
     594    PXOPT_LOOKUP_STR(destdir, config->args, "-destdir", false, false);
     595    PXOPT_LOOKUP_STR(dirinfo, config->args, "-dirinfo", false, false);
     596    PXOPT_LOOKUP_STR(dbinfo, config->args, "-dbinfo", false, false);
    595597    PXOPT_LOOKUP_STR(state, config->args, "-set_state", false, false);
    596598
    597     if (!fault && !dbinfo_uri && !state) {
    598         psError(PS_ERR_UNKNOWN, true, "one of -fault, -dbinfo_uri, -set_state are required");
     599    if (!fault && !dirinfo &&!dbinfo && !state) {
     600        psError(PS_ERR_UNKNOWN, true, "at least one of -fault, -dirinfo, -dbinfo, -set_state are required");
    599601        return false;
    600602    }
     
    608610        sep = ",";
    609611    }
    610     if (dbinfo_uri) {
    611         psStringAppend(&query, "%s dbinfo_uri = '%s'", sep, dbinfo_uri);
     612    if (dirinfo) {
     613        psStringAppend(&query, "%s dirinfo = '%s'", sep, dirinfo);
     614        sep = ",";
     615    }
     616    if (dbinfo) {
     617        psStringAppend(&query, "%s dbinfo = '%s'", sep, dbinfo);
    612618        sep = ",";
    613619    }
Note: See TracChangeset for help on using the changeset viewer.