IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 17, 2008, 12:16:38 PM (18 years ago)
Author:
Paul Price
Message:

Changing use of psDB* to pmConfig* so that the database handle only has to be set up when required.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/config/pmConfig.c

    r18073 r18163  
    12971297    #else
    12981298
     1299    if (config->database) {
     1300        return config->database;
     1301    }
     1302
    12991303    psBool mdStatus01 = false;
    13001304    psBool mdStatus02 = false;
     
    13221326    }
    13231327
    1324     return psDBInit(dbServer, dbUsername, dbPassword, dbName, dbPort);
     1328    config->database = psDBInit(dbServer, dbUsername, dbPassword, dbName, dbPort);
     1329    return config->database;
    13251330    #endif
    13261331}
Note: See TracChangeset for help on using the changeset viewer.