pgpool2.git / summary / log / commit / refs

commit    b4f4eb91a69540992cb6fcf2aa060115f0b94a05
Author:   Tatsuo Ishii <ishii@postgresql.org>
Date:     Tue Jun 05 05:37:31 2012 +0000

    Update pool_search_relcache() so that it emits log
    when cache replacement happens.


pool_relcache.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pool_relcache.c b/pool_relcache.c index 81d1197aa..068ad9488 100644 --- a/pool_relcache.c +++ b/pool_relcache.c @@ -5,7 +5,7 @@ * pgpool: a language independent connection pool server for PostgreSQL * written by Tatsuo Ishii * - * Copyright (c) 2003-2011 PgPool Global Development Group + * Copyright (c) 2003-2012 PgPool Global Development Group * * Permission to use, copy, modify, and distribute this software and * its documentation for any purpose and without fee is hereby @@ -207,6 +207,11 @@ void *pool_search_relcache(POOL_RELCACHE *relcache, POOL_CONNECTION_POOL *backen } } + if (maxrefcnt != INT_MAX) + { + pool_log("pool_search_relcache: cache replacement happend"); + } + /* Register cache */ result = (*relcache->register_func)(res); [parent: afcf2505745b]