- Timestamp:
- Feb 21, 2008, 3:17:15 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20080219/psModules/src/config/pmConfigCommand.c
r16542 r16578 13 13 PS_ASSERT_PTR_NON_NULL(command, false); 14 14 PS_ASSERT_PTR_NON_NULL(config, false); 15 PS_ASSERT_PTR_NON_NULL(config-> xxSite, false);15 PS_ASSERT_PTR_NON_NULL(config->complete, false); 16 16 17 17 bool mdok; // Status of MD lookup 18 const char *dbserver = psMetadataLookupStr(&mdok, config-> xxSite, "DBSERVER"); // Database server18 const char *dbserver = psMetadataLookupStr(&mdok, config->complete, "DBSERVER"); // Database server 19 19 if (!mdok || strlen(dbserver) == 0) { 20 20 psError(PS_ERR_UNEXPECTED_NULL, true, "Unable to find DBSERVER in site configuration.\n"); 21 21 return false; 22 22 } 23 const char *dbname = psMetadataLookupStr(&mdok, config-> xxSite, "DBNAME"); // Database name23 const char *dbname = psMetadataLookupStr(&mdok, config->complete, "DBNAME"); // Database name 24 24 if (!mdok || strlen(dbname) == 0) { 25 25 psError(PS_ERR_UNEXPECTED_NULL, true, "Unable to find DBNAME in site configuration.\n"); 26 26 return false; 27 27 } 28 const char *dbuser = psMetadataLookupStr(&mdok, config-> xxSite, "DBUSER"); // Database user28 const char *dbuser = psMetadataLookupStr(&mdok, config->complete, "DBUSER"); // Database user 29 29 if (!mdok || strlen(dbuser) == 0) { 30 30 psError(PS_ERR_UNEXPECTED_NULL, true, "Unable to find DBUSER in site configuration.\n"); 31 31 return false; 32 32 } 33 const char *dbpassword = psMetadataLookupStr(&mdok, config-> xxSite, "DBPASSWORD"); // Database password33 const char *dbpassword = psMetadataLookupStr(&mdok, config->complete, "DBPASSWORD"); // Database password 34 34 if (!mdok || strlen(dbpassword) == 0) { 35 35 psError(PS_ERR_UNEXPECTED_NULL, true, "Unable to find DBPASSWORD in site configuration.\n");
Note:
See TracChangeset
for help on using the changeset viewer.
