Commit 6d39d25c authored by Andreas Gustafsson's avatar Andreas Gustafsson
Browse files

set configuration lock quotas to 1

parent 4ab89b50
...@@ -898,7 +898,7 @@ ns_server_create(isc_mem_t *mctx, ns_server_t **serverp) { ...@@ -898,7 +898,7 @@ ns_server_create(isc_mem_t *mctx, ns_server_t **serverp) {
server->mctx = mctx; server->mctx = mctx;
server->task = NULL; server->task = NULL;
CHECKFATAL(isc_rwlock_init(&server->conflock, UINT_MAX, UINT_MAX), CHECKFATAL(isc_rwlock_init(&server->conflock, 1, 1),
"initializing server configuration lock"); "initializing server configuration lock");
/* Initialize configuration data with default values. */ /* Initialize configuration data with default values. */
......
...@@ -77,7 +77,7 @@ dns_view_create(isc_mem_t *mctx, dns_rdataclass_t rdclass, ...@@ -77,7 +77,7 @@ dns_view_create(isc_mem_t *mctx, dns_rdataclass_t rdclass,
result = ISC_R_UNEXPECTED; result = ISC_R_UNEXPECTED;
goto cleanup_name; goto cleanup_name;
} }
result = isc_rwlock_init(&view->conflock, UINT_MAX, UINT_MAX); result = isc_rwlock_init(&view->conflock, 1, 1);
if (result != ISC_R_SUCCESS) { if (result != ISC_R_SUCCESS) {
UNEXPECTED_ERROR(__FILE__, __LINE__, UNEXPECTED_ERROR(__FILE__, __LINE__,
"isc_rwlock_init() failed: %s", "isc_rwlock_init() failed: %s",
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* SOFTWARE. * SOFTWARE.
*/ */
/* $Id: zone.c,v 1.68 2000/01/27 19:44:18 gson Exp $ */ /* $Id: zone.c,v 1.69 2000/01/27 21:20:11 gson Exp $ */
#include <config.h> #include <config.h>
...@@ -2984,7 +2984,7 @@ dns_zonemgr_create(isc_mem_t *mctx, isc_taskmgr_t *taskmgr, ...@@ -2984,7 +2984,7 @@ dns_zonemgr_create(isc_mem_t *mctx, isc_taskmgr_t *taskmgr,
result = DNS_R_UNEXPECTED; result = DNS_R_UNEXPECTED;
goto free_mem; goto free_mem;
} }
result = isc_rwlock_init(&zmgr->conflock, UINT_MAX, UINT_MAX); result = isc_rwlock_init(&zmgr->conflock, 1, 1);
if (result != ISC_R_SUCCESS) { if (result != ISC_R_SUCCESS) {
UNEXPECTED_ERROR(__FILE__, __LINE__, UNEXPECTED_ERROR(__FILE__, __LINE__,
"isc_rwlock_init() failed: %s", "isc_rwlock_init() failed: %s",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment