Skip to content
Snippets Groups Projects
Commit f1187e41 authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

the caching database may need to inherit ACLs and limits from the proxy

parent ecf5581f
No related branches found
No related tags found
No related merge requests found
......@@ -1726,6 +1726,12 @@ proxy_cache_open(
}
}
/* need to inherit something from the original database... */
cm->db.be_def_limit = be->be_def_limit;
cm->db.be_limits = be->be_limits;
cm->db.be_acl = be->be_acl;
cm->db.be_dfltaccess = be->be_dfltaccess;
rc = backend_startup_one( &cm->db );
/* There is no runqueue in TOOL mode */
......@@ -1762,6 +1768,10 @@ proxy_cache_close(
query_manager *qm = cm->qm;
int i, j, rc = 0;
/* cleanup stuff inherited from the original database... */
cm->db.be_limits = NULL;
cm->db.be_acl = NULL;
if ( cm->db.bd_info->bi_db_close ) {
rc = cm->db.bd_info->bi_db_close( &cm->db );
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment