From 6b31b72b11cb564b5be2519d66164b6ff8f6c408 Mon Sep 17 00:00:00 2001 From: Dmitri Pal Date: Thu, 10 Sep 2009 10:42:43 -0400 Subject: 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. --- collection/collection_tools.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'collection/collection_tools.c') 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: -- cgit