From 3488eb700179e7e0f472a711796aa8ef376e6528 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 13 Oct 2008 13:45:52 +0200 Subject: [PATCH] Fixed bug 2021: non-merged , brief meta data not included. Fixed bug 2021/2272. For non-merged meta data is also included in cluster when merge is set to 'no'. --- src/logic.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/logic.c b/src/logic.c index 70b3879..4ac92f0 100644 --- a/src/logic.c +++ b/src/logic.c @@ -1086,7 +1086,6 @@ struct record *ingest_record(struct client *cl, const char *rec, wheretoput = &record->metadata[md_field_id]; while (*wheretoput) wheretoput = &(*wheretoput)->next; - rec_md->next = 0; *wheretoput = rec_md; // merged metadata @@ -1096,6 +1095,12 @@ struct record *ingest_record(struct client *cl, const char *rec, // and polulate with data: // assign cluster or record based on merge action + if (ser_md->merge == Metadata_merge_no) + { + while (*wheretoput) + wheretoput = &(*wheretoput)->next; + *wheretoput = rec_md; + } if (ser_md->merge == Metadata_merge_unique) { struct record_metadata *mnode; -- 1.7.10.4