IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 8, 2023, 12:14:39 PM (3 years ago)
Author:
eugene
Message:

merge from eam_branches/ipp-20220316. add safety to pxadmin to prevent drop of ops dbs, add fpcamera, more flexibility in ippadmin for testing; prevent pzgetexp from trying to download too many exposures

Location:
trunk/ippTools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools

  • trunk/ippTools/src

  • trunk/ippTools/src/pzgetexp.c

    r31038 r42387  
    136136    psFree(cmdOutput);
    137137    if (!newSummitExps) {
    138         // XXX not nessicarily an error
     138        // XXX not necessarily an error?
    139139        psError(PS_ERR_UNKNOWN, true, "no new fileSet/exp IDs");
    140140        return false;
     
    145145        return true;
    146146    }
     147    // If we supply an unknown last_fileset (exposure name) to the summit datastore,
     148    // it will return all filesets it knows about.  This can cause problems (table overflow)
     149    // if this is too large a number.  Raise an error and let the user fix the underlying
     150    // problem (last exposure not known to the summit datastore)
     151    // Do we need to be able to configure this number?
     152    if (psArrayLength(newSummitExps) > 10000) {
     153        psError(PS_ERR_UNKNOWN, true, "too many new fileSet/exp IDs? unknown exposure? problem with summitExp table?");
     154        return false;
     155    }
    147156
    148157    // start a transaction so it's all rows or nothing
     
    153162    }
    154163
    155     // increase memory table size limits; deafult is 16MB
    156     {
     164    // increase memory table size limits; default is 16MB, but our current (2022) config
     165    // in /etc/mysql/my.cnf sets to default to 1024M.
     166    // This command sets the max_heap_table_size within the transaction, and does not
     167    // apparently stick.  But this is not really needed, so we are deactivating it.
     168    if (0) {
    157169        // 512MB
    158170        char *query = "SET max_heap_table_size = 1024*1024*512";
Note: See TracChangeset for help on using the changeset viewer.