IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 26378


Ignore:
Timestamp:
Dec 9, 2009, 12:14:22 PM (16 years ago)
Author:
watersc1
Message:

dqstatstool: I forgot to commit this last week.

summit copy: added support for use_compress option in the datastore entry in the database. This should allow gpc1 and isp data to be copied using the same code.

dbconfig: database changes to support the above.

Location:
trunk
Files:
11 added
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/dbconfig/changes.txt

    r26297 r26378  
    14661466) ENGINE=innodb DEFAULT CHARSET=latin1;
    14671467
     1468-- Version 1.1.60
     1469
     1470ALTER TABLE dqstatsRun ADD COLUMN label VARCHAR(64) AFTER registered;
     1471ALTER TABLE dqstatsRun ADD KEY(label);
     1472
     1473ALTER TABLE dqstatsRun ADD COLUMN fault SMALLINT NOT NULL AFTER label;
     1474ALTER TABLE dqstatsRun ADD KEY(fault);
     1475
     1476-- Version 1.1.61
     1477
     1478ALTER TABLE pzDataStore ADD COLUMN use_compress SMALLINT NOT NULL AFTER epoch;
     1479
     1480UPDATE dbversion set schema_version = '1.1.61',  updated= CURRENT_TIMESTAMP();
  • trunk/dbconfig/dqstats.md

    r26297 r26378  
    33    state          STR          64
    44    registered     TAI          NULL
     5    label          STR          64    # Key
     6    fault          S16          0     # Key NOT NULL
    57END
    68
  • trunk/dbconfig/summitcopy.md

    r25418 r26378  
    44    uri         STR         255
    55    epoch       UTC         0001-01-01T00:00:00Z
     6    use_compress S16        0
    67END
    78
  • trunk/ippScripts/Build.PL

    r26290 r26378  
    9898        scripts/rcserver_checkstatus.pl
    9999        scripts/publish_file.pl
     100        scripts/dqstats_bundle.pl
    100101        scripts/whichimage
    101102    )],
  • trunk/ippScripts/scripts/register_imfile.pl

    r25484 r26378  
    130130    }
    131131    elsif (($isGPC1 == 1) && ($burntoolState == 1)) {
     132#       print STDERR "In the good region: >>$burntoolState<<\n";
    132133        my $ppConfigDump_cmd = "$ppConfigDump -camera GPC1 -dump-camera -";
    133134        my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
     
    148149        }
    149150        $burntoolState = $burntoolStateGood; # Positive because this has the header table.
     151       
    150152    }
    151153    $cmdflags .= " -burntool_state $burntoolState ";
  • trunk/ippTasks/Makefile.am

    r26087 r26378  
    2929        receive.pro \
    3030        publish.pro \
     31        dqstats.pro \
    3132        science.cleanup.pro
    3233
  • trunk/ippTasks/summit.copy.pro

    r25340 r26378  
    147147# run pzgetexp periodically to populate pzPendingExp in the database (no I/O)
    148148# this task is querying the data store for a list of exposures ("filesets")
    149 # and inserting these into a db table on the local cluster (pzPendingExp)
     149# and inserting these into a db table on the local cluster (pzDownloadExp)
    150150task pzgetexp
    151151  periods      -exec     30
     
    446446        stderr $LOGDIR/summit.copy.log
    447447
     448        book getpage pzDataStore 0 -var PZDSPAGE -key dbname $DBNAME
     449        book getword pzDataStore $PZDSPAGE use_compress  -var USECOMPRESS
     450
    448451        $run = summit_copy.pl --uri $URI --filename $FILENAME --exp_name $EXP_NAME --inst $CAMERA --telescope $TELESCOPE --class $CLASS --class_id $CLASS_ID --bytes $BYTES --md5 $MD5SUM --dbname $DBNAME --timeout 120 --verbose --copies 2
    449         if ($COMPRESS)
     452        if ($USECOMPRESS == 1)
    450453            $run = $run --compress
    451         else
    452             $run = $run --bytes $BYTES
    453         end
    454         if (("$MD5SUM" != "NULL") && ("$MD5SUM" != "0") && (not($COMPRESS)))
     454        end
     455#        if (("$MD5SUM" != "NULL") && ("$MD5SUM" != "0") && (not($COMPRESS)))
    455456# && (($YEAR > 2008) || (("$YEAR" = "2007") && ($MONTH > 8))))
    456             $run = $run --md5 $MD5SUM
    457         end
     457#            $run = $run --md5 $MD5SUM
     458#        end
    458459        if ($NEBULOUS)
    459460            $run = $run --nebulous
     
    463464        # store the pageName for future reference below
    464465        options $pageName
    465 
     466       
    466467        # create the command line
    467468        if ($VERBOSE > 1)
  • trunk/ippTools/share/Makefile.am

    r26193 r26378  
    140140     disttool_updateinterest.sql \
    141141     disttool_updatercrun.sql \
     142     dqstatstool_createbundle.sql \
     143     dqstatstool_definebyquery.sql \
     144     dqstatstool_get_contents.sql \
     145     dqstatstool_get_run.sql \
    142146     faketool_change_exp_state.sql \
    143147     faketool_change_imfile_data_state.sql \
  • trunk/ippTools/src/Makefile.am

    r25773 r26378  
    99        disttool \
    1010        flatcorr \
     11        dqstatstool \
    1112        magictool \
    1213        magicdstool \
     
    3233        pxdata.h \
    3334        pxfake.h \
     35        pxdqstats.h
    3436        pxmagic.h \
    3537        pxregister.h \
     
    5254        flatcorr.h \
    5355        faketool.h \
     56        dqstatstool.h \
    5457        magictool.h \
    5558        magicdstool.h \
     
    7780        pxfake.c \
    7881        pxfault.c \
     82        pxdqstats.c \
    7983        pxmagic.c \
    8084        pxregister.c \
     
    142146    faketool.c \
    143147    faketoolConfig.c
     148
     149dqstatstool_CFLAGS = $(PSLIB_CFLAGS) $(PSMODULES_CFLAGS) $(IPPDB_CFLAGS)
     150dqstatstool_LDADD = $(PSLIB_LIBS) $(PSMODULES_LIBS) $(IPPDB_LIBS) libpxtools.la
     151dqstatstool_SOURCES = \
     152    dqstatstool.c \
     153    dqstatstoolConfig.c
    144154
    145155magictool_CFLAGS = $(PSLIB_CFLAGS) $(PSMODULES_CFLAGS) $(IPPDB_CFLAGS)
  • trunk/ippTools/src/pztool.c

    r26349 r26378  
    117117            telescope,
    118118            uri,
    119             NULL  // epoch
     119            NULL,  // epoch
     120            0      // use_compress                         
    120121        )) {
    121122        psError(PS_ERR_UNKNOWN, false, "database error");
Note: See TracChangeset for help on using the changeset viewer.