Changeset 5435 for trunk/psModules/src/config
- Timestamp:
- Oct 20, 2005, 1:06:24 PM (21 years ago)
- Location:
- trunk/psModules/src/config
- Files:
-
- 2 edited
-
pmConfig.c (modified) (2 diffs)
-
pmConfig.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/config/pmConfig.c
r5356 r5435 3 3 * @author PAP, IfA 4 4 * 5 * @version $Revision: 1. 2$ $Name: not supported by cvs2svn $6 * @date $Date: 2005-10- 17 23:37:11$5 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 6 * @date $Date: 2005-10-20 23:06:24 $ 7 7 * 8 8 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 404 404 return recipe; 405 405 } 406 407 /****************************************************************************** 408 pmConfigDB(*site) 409 410 XXX: What should we use for the Database namespace in the call to psDBInit()? 411 This is currently NULL. 412 *****************************************************************************/ 413 414 psDB *pmConfigDB( 415 psMetadata *site) 416 { 417 PS_ASSERT_PTR_NON_NULL(site, NULL); 418 psBool mdStatus01 = false; 419 psBool mdStatus02 = false; 420 psBool mdStatus03 = false; 421 422 psString dbServer = psMetadataLookupStr(&mdStatus01, site, "DBSERVER"); 423 psString dbUsername = psMetadataLookupStr(&mdStatus02, site, "DBUSER"); 424 psString dbPassword = psMetadataLookupStr(&mdStatus03, site, "DBPASSWORD"); 425 if (!(mdStatus01 & mdStatus02 & mdStatus03)) { 426 psLogMsg(__func__, PS_LOG_WARN, "Could not determine database server name, userID, and password from site metadata.\n"); 427 return(NULL); 428 } 429 430 return(psDBInit(dbServer, dbUsername, dbPassword, NULL)); 431 } -
trunk/psModules/src/config/pmConfig.h
r5355 r5435 3 3 * @author PAP, IfA 4 4 * 5 * @version $Revision: 1. 1$ $Name: not supported by cvs2svn $6 * @date $Date: 2005-10- 17 21:34:12$5 * @version $Revision: 1.2 $ $Name: not supported by cvs2svn $ 6 * @date $Date: 2005-10-20 23:06:24 $ 7 7 * 8 8 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 84 84 ); 85 85 86 /** pmConfigDB 87 * 88 * pmConfigDB shall use the site configuration data to open a database handle. 89 * This is fairly straightforward at the moment, but will change when we beef up 90 * security. (TBD) 91 * 92 */ 93 psDB *pmConfigDB( 94 psMetadata *site 95 ); 96 97 86 98 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
