diff options
| author | Rob Crittenden <rcritten@redhat.com> | 2005-02-23 18:19:13 +0000 |
|---|---|---|
| committer | Rob Crittenden <rcritten@redhat.com> | 2005-02-23 18:19:13 +0000 |
| commit | 21305115e547133a0122c44b7e9956ef78dc94be (patch) | |
| tree | b72f28ba737b35c0f13003478f5e777146789ef3 /lib/base/pool.cpp | |
| parent | f64e827b9c3011b07b5d78dd52466236dc77346e (diff) | |
| download | ds-21305115e547133a0122c44b7e9956ef78dc94be.tar.gz ds-21305115e547133a0122c44b7e9956ef78dc94be.tar.xz ds-21305115e547133a0122c44b7e9956ef78dc94be.zip | |
149510
Strip down ACL code and support libraries to the bare minimum.
Diffstat (limited to 'lib/base/pool.cpp')
| -rw-r--r-- | lib/base/pool.cpp | 34 |
1 files changed, 1 insertions, 33 deletions
diff --git a/lib/base/pool.cpp b/lib/base/pool.cpp index 56232e3f..e33acd44 100644 --- a/lib/base/pool.cpp +++ b/lib/base/pool.cpp @@ -27,9 +27,6 @@ #ifdef MALLOC_POOLS #include "base/pool.h" #include "base/ereport.h" -#include "base/session.h" -#include "frame/req.h" -#include "frame/http.h" #include "base/util.h" #include "base/crit.h" @@ -107,40 +104,11 @@ pool_internal_init() known_pools_lock = crit_init(); freelist_lock = crit_init(); } - } else - ereport(LOG_INFORM, XP_GetAdminStr(DBT_poolInitMemoryPoolsDisabled_)); - - return 0; -} - -NSAPI_PUBLIC int -pool_init(pblock *pb, Session *sn, Request *rq) -{ - char *str_free_size = pblock_findval("free-size", pb); - char *str_pool_disable = pblock_findval("disable", pb); - - if (str_free_size != NULL) { - if ( (freelist_max = atoi(str_free_size)) <= 0) { - ereport(LOG_WARN, XP_GetAdminStr(DBT_poolInitFreeSize0UsingD_), - MAX_FREELIST_SIZE); - freelist_max = MAX_FREELIST_SIZE; - } } - if (str_pool_disable && strcasecmp(str_pool_disable, "false") ) - pool_disable = 1; - else - pool_disable = 0; - - if (known_pools_lock == NULL) { - known_pools_lock = crit_init(); - freelist_lock = crit_init(); - } - - return REQ_PROCEED; + return 0; } - static block_t * _create_block(int size) { |
