pgpool2.git / summary / log / commit / refs

commit    542a70ebe61d17d34413ec2e6ca12e1cdf863ec7
Author:   Tatsuo Ishii <ishii@postgresql.org>
Date:     Wed Jul 25 13:14:18 2012 +0000

    Fix pool_create_relcache to initialize no_cache_if_zero to false.
    This makes sometimes pool_search_relcache fails to find valid cache
    entry.
    Note: no_cache_if_zero is not currently used. But maybe usefull in the future.
    So I leave it as it is, rather than remove it.


pool_relcache.c | 1 + 1 file changed, 1 insertion(+) diff --git a/pool_relcache.c b/pool_relcache.c index d7427f767..0d8c4084a 100644 --- a/pool_relcache.c +++ b/pool_relcache.c @@ -67,6 +67,7 @@ POOL_RELCACHE *pool_create_relcache(int cachesize, char *sql, p->register_func = register_func; p->unregister_func = unregister_func; p->cache_is_session_local = issessionlocal; + p->no_cache_if_zero = false; p->cache = ip; return p; [parent: 943c6788d69d]