pgpool2.git / summary / log / commit / refs
commit 209389ff34e8776107eee0496ebe37397fa34b13
Author: Tatsuo Ishii <ishii at sraoss.co.jp>
Date: Wed Sep 14 13:45:01 2011 +0000
Stats memory should be allocated in memcached case.
main.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/main.c b/main.c
index 642b01767..a9359cc30 100644
--- a/main.c
+++ b/main.c
@@ -566,13 +566,16 @@ int main(int argc, char **argv)
pool_allocate_fsmm_clock_hand();
+ pool_discard_oid_maps();
+ }
+
+ if (pool_config->memory_cache_enabled)
+ {
if (pool_init_memqcache_stats() < 0)
{
pool_error("pool_init_memqcache_stats error");
myexit(1);
}
-
- pool_discard_oid_maps();
}
/*
[parent: 91297c7cb841]