IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 28, 2006, 5:25:54 PM (20 years ago)
Author:
jhoblitt
Message:

require ippdb 0.0.38
the "big" exp_id -> exp_tag conversion

File:
1 edited

Legend:

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

    r8121 r9057  
    2525        p2PendingExpRow *exposure = exposures->data[i];
    2626
    27         psMetadataAddStr(where, PS_LIST_TAIL, "exp_id", PS_META_REPLACE, "==", exposure->exp_id);
     27        psMetadataAddStr(where, PS_LIST_TAIL, "exp_tag", PS_META_REPLACE, "==", exposure->exp_tag);
    2828        psMetadataAddS32(where, PS_LIST_TAIL, "p2_version", PS_META_REPLACE, "==", exposure->p2_version);
    2929
     
    6161    PS_ASSERT_PTR_NON_NULL(config, NULL);
    6262
    63     // exp_id is optional
     63    // exp_tag is optional
    6464    bool status = false;
    65     psString exp_id = psMetadataLookupStr(&status, config->args, "-exp_id");
     65    psString exp_tag = psMetadataLookupStr(&status, config->args, "-exp_tag");
    6666    if (!status) {
    67         psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -exp_id");
     67        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -exp_tag");
    6868        return false;
    6969    }
    7070
    71     // search only based on exp_id -- either they specified it or not
     71    // search only based on exp_tag -- either they specified it or not
    7272    psMetadata *where = NULL;
    73     if (exp_id) {
     73    if (exp_tag) {
    7474        where = psMetadataAlloc();
    75         if (!psMetadataAddStr(where, PS_LIST_TAIL, "exp_id", 0, "==", exp_id)) {
    76             psError(PS_ERR_UNKNOWN, false, "failed to add item exp_id");
     75        if (!psMetadataAddStr(where, PS_LIST_TAIL, "exp_tag", 0, "==", exp_tag)) {
     76            psError(PS_ERR_UNKNOWN, false, "failed to add item exp_tag");
    7777            psFree(where);
    7878            return false;
Note: See TracChangeset for help on using the changeset viewer.