From: oetiker Date: Mon, 22 Mar 2010 14:50:32 +0000 (+0000) Subject: rrdcached: Do not put any code in assert(). -- Sebastian Harl X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=17d5fce6da802b46dc905fd48e05eb2423d078f0;p=rrdtool.git rrdcached: Do not put any code in assert(). -- Sebastian Harl git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2036 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/src/rrd_daemon.c b/src/rrd_daemon.c index b290bcc..ba9c2ad 100644 --- a/src/rrd_daemon.c +++ b/src/rrd_daemon.c @@ -821,9 +821,10 @@ static int flush_old_values (int max_age) for (k = 0; k < cfd.keys_num; k++) { + gboolean status = g_tree_remove(cache_tree, cfd.keys[k]); /* should never fail, since we have held the cache_lock * the entire time */ - assert( g_tree_remove(cache_tree, cfd.keys[k]) == TRUE ); + assert(status == TRUE); } if (cfd.keys != NULL)