[sr-dev] git:4.3:bfe40dd6: mtree: internal prefix max size set to 64

Daniel-Constantin Mierla miconda at gmail.com
Tue Jun 9 10:40:09 CEST 2015


Module: kamailio
Branch: 4.3
Commit: bfe40dd69e154b90820d8e87ea5ea46e51601e54
URL: https://github.com/kamailio/kamailio/commit/bfe40dd69e154b90820d8e87ea5ea46e51601e54

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2015-06-09T10:33:19+02:00

mtree: internal prefix max size set to 64

- allow for larger prefix values to be used (e.g., case of uuid, ipv6)
- db corresponding field still set to varchar(32)

(cherry picked from commit 47086a4ee0a6ee6a766d7591e91e5663acf31562)

---

Modified: modules/mtree/mtree.h

---

Diff:  https://github.com/kamailio/kamailio/commit/bfe40dd69e154b90820d8e87ea5ea46e51601e54.diff
Patch: https://github.com/kamailio/kamailio/commit/bfe40dd69e154b90820d8e87ea5ea46e51601e54.patch

---

diff --git a/modules/mtree/mtree.h b/modules/mtree/mtree.h
index 662f6cf..923c801 100644
--- a/modules/mtree/mtree.h
+++ b/modules/mtree/mtree.h
@@ -59,7 +59,7 @@ typedef struct _mt_node
     struct _mt_node *child;
 } mt_node_t;
 
-#define MT_MAX_DEPTH	32
+#define MT_MAX_DEPTH	64
 
 #define MT_NODE_SIZE	mt_char_list.len
 




More information about the sr-dev mailing list