IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 18928


Ignore:
Timestamp:
Aug 5, 2008, 3:21:49 PM (18 years ago)
Author:
jhoblitt
Message:

increase memory table size limit

File:
1 edited

Legend:

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

    r18919 r18928  
    149149    if (!psDBTransaction(config->dbh)) {
    150150        psError(PS_ERR_UNKNOWN, false, "database error");
     151        psFree(newSummitExps);
    151152        return false;
     153    }
     154
     155    // increase memory table size limits; deafult is 16MB
     156    {
     157        // 512MB
     158        char *query = "SET max_heap_table_size = 1024*1024*512";
     159        if (!p_psDBRunQuery(config->dbh, query)) {
     160            // rollback
     161            if (!psDBRollback(config->dbh)) {
     162                psError(PS_ERR_UNKNOWN, false, "database error");
     163            }
     164            psError(PS_ERR_UNKNOWN, false, "database error");
     165            psFree(newSummitExps);
     166            return false;
     167        }
    152168    }
    153169
Note: See TracChangeset for help on using the changeset viewer.