summaryrefslogtreecommitdiffstats
path: root/collection/collection_tools.c
diff options
context:
space:
mode:
authorDmitri Pal <dpal@redhat.com>2009-09-10 10:42:43 -0400
committerSimo Sorce <ssorce@redhat.com>2009-09-10 17:17:07 -0400
commit6b31b72b11cb564b5be2519d66164b6ff8f6c408 (patch)
tree919b57cac252886af4094dc069bb97cafa5c3cf5 /collection/collection_tools.c
parent9701da59c11be7152ecca5171d676e075539fc22 (diff)
downloadding-libs2-6b31b72b11cb564b5be2519d66164b6ff8f6c408.tar.gz
ding-libs2-6b31b72b11cb564b5be2519d66164b6ff8f6c408.tar.xz
ding-libs2-6b31b72b11cb564b5be2519d66164b6ff8f6c408.zip
COLLECTION Improvements to copy functions
This patch adds better options for copying collections in flat mode. It allows caller of the interface to control prefixing of the fields when one collection is appended to another. It also avoids creating prefixes when the collection is simply copied in flat mode. Also for ELAPI I realized that the most efficient way to deal with the "resolved" event (event where all templeted values are actually replaced with the real values) is to add a callback capability to a copy collection function so that the callback can be used to modify the data (resolve it) while the copy operation is in progress. This approach eliminates the need for separate set of lookups after the event is already copied.
Diffstat (limited to 'collection/collection_tools.c')
-rw-r--r--collection/collection_tools.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/collection/collection_tools.c b/collection/collection_tools.c
index aa82134..c3f00ea 100644
--- a/collection/collection_tools.c
+++ b/collection/collection_tools.c
@@ -244,7 +244,7 @@ int col_get_data_len(int type, int length)
case COL_TYPE_UNSIGNED:
case COL_TYPE_LONG:
case COL_TYPE_ULONG:
- len = 15;
+ len = 20;
break;
case COL_TYPE_STRING: