src/server/plugins/postgresql/config.c

changeset 418
b7dcc9c4f270
parent 415
d938228c382e
child 490
d218607f5a7e
equal deleted inserted replaced
417:90805bb9fbd6 418:b7dcc9c4f270
93 if(!pg) { 93 if(!pg) {
94 log_ereport(LOG_MISCONFIG, "pg_init_repo: missing postgresql config object"); 94 log_ereport(LOG_MISCONFIG, "pg_init_repo: missing postgresql config object");
95 return NULL; 95 return NULL;
96 } 96 }
97 97
98 cxstring cfg_respool = serverconfig_directive_value(pg, cx_str("ResourcePool")); 98 cxstring cfg_respool = serverconfig_object_directive_value(pg, cx_str("ResourcePool"));
99 cxstring cfg_rootid = serverconfig_directive_value(pg, cx_str("RootId")); 99 cxstring cfg_rootid = serverconfig_object_directive_value(pg, cx_str("RootId"));
100 cxstring cfg_rootnode = serverconfig_directive_value(pg, cx_str("RootNode")); 100 cxstring cfg_rootnode = serverconfig_object_directive_value(pg, cx_str("RootNode"));
101 cxstring cfg_dav = serverconfig_directive_value(pg, cx_str("PGDavConfig")); 101 cxstring cfg_dav = serverconfig_object_directive_value(pg, cx_str("PGDavConfig"));
102 102
103 // minimum requirement is a resource pool 103 // minimum requirement is a resource pool
104 if(cfg_respool.length == 0) { 104 if(cfg_respool.length == 0) {
105 return NULL; 105 return NULL;
106 } 106 }

mercurial