aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/radix.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-14 13:38:27 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-14 13:38:27 +0000
commit03f3ae3e31d1b9e27830f29b388b2f3beb47aa06 (patch)
treeb4235ccb5fe7935648cc7dc1ffb1150c44197195 /src/libutil/radix.c
parentd212dc2bf89ec79a85fed3e368d171edd77aa7be (diff)
downloadrspamd-03f3ae3e31d1b9e27830f29b388b2f3beb47aa06.tar.gz
rspamd-03f3ae3e31d1b9e27830f29b388b2f3beb47aa06.zip
Print more info about radix tries
Diffstat (limited to 'src/libutil/radix.c')
-rw-r--r--src/libutil/radix.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libutil/radix.c b/src/libutil/radix.c
index a8bf5e3d3..7dc0b8237 100644
--- a/src/libutil/radix.c
+++ b/src/libutil/radix.c
@@ -242,3 +242,13 @@ radix_get_pool (radix_compressed_t *tree)
return NULL;
}
+
+const gchar *
+radix_get_info (radix_compressed_t *tree)
+{
+ if (tree == NULL) {
+ return NULL;
+ }
+
+ return btrie_stats (tree->tree);
+}