IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 32451


Ignore:
Timestamp:
Sep 26, 2011, 11:37:59 AM (15 years ago)
Author:
heather
Message:

This fixes a bug that if a selection of camRuns which has multiple cam_ids
pointing to the same exp_id (with that exp_id not in the addRun dvodb) it will
queue all of the cam_ids, because it hasn't processed that exp_id. The fix
limits it to 1 of those. I also fixed staticsky which would have the same
problem.

File:
1 edited

Legend:

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

    r31680 r32451  
    280280
    281281    }
     282
     283    //if we grab a group of camRun/stackRuns that have multiple camRun/stackRun pointing to the same exp_id/stack_id, and that exp_id/stack_id has never before been added to addRun, we need to group by exp_id/stack_id to ensure that only 1 of the camRun/stackRun for that exp_id is added to the addRun stage.
     284
     285    if (strcmp(stage,"cam") == 0) {
     286        psStringAppend(&query, " GROUP BY exp_id");
     287   }
     288      if (strcmp(stage,"stack") == 0) {
     289        psStringAppend(&query, " GROUP BY stack_id");
     290      }
     291    if (strcmp(stage,"staticsky") == 0) {
     292        psStringAppend(&query, " GROUP BY stack_id");
     293      }
     294
     295
    282296
    283297    psTrace("addtool.c", PS_LOG_INFO,"query: \n\n%s\n\n",query);
Note: See TracChangeset for help on using the changeset viewer.