TESTING:-
No middleware dependencies.
No O/S dependencies.
Problem:-
Currently this will create a msg using the default payload rather than the payload in the file.
To expose this create a file using qpid msg then try to load wih default payload set to avis msg.
The below patch will resolve this issue.
PATCH:- 0001-Modification-to-playbackFileParser.c
From 0c0938fd90243753feb8997f306545c7551c51b1 Mon Sep 17 00:00:00 2001
From: A Ambrose <aambrose@...>
Date: Mon, 25 Aug 2014 12:10:26 +0100
Subject: [PATCH] Modification to playbackFileParser.c
Currently this will create a msg using the default payload rather than the
payload in the file.
[OMAMA-283]
Signed-off-by: A Ambrose <aambrose@...>
---
mama/c_cpp/src/c/playback/playbackFileParser.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/mama/c_cpp/src/c/playback/playbackFileParser.c b/mama/c_cpp/src/c/playback/playbackFileParser.c
index c8f1717..0f2849c 100644
--- a/mama/c_cpp/src/c/playback/playbackFileParser.c
+++ b/mama/c_cpp/src/c/playback/playbackFileParser.c
@@ -79,6 +79,7 @@ mama_status mamaPlaybackFileParser_init (mamaPlaybackFileParser
impl->myMamaMsgLen = 0;
impl->myMaxMsgLen = 0;
impl->myMsgBuffer = NULL;
+ impl->myMamaMsg = NULL;
return MAMA_STATUS_OK;
}
@@ -98,7 +99,6 @@ mamaPlaybackFileParser_allocate (mamaPlaybackFileParser* fileParser)
{
return MAMA_STATUS_NOMEM;
}
- mamaMsg_create(&impl->myMamaMsg);
mamaPlaybackFileParser_init (impl);
*fileParser = (mamaPlaybackFileParserImpl*)impl;
--
1.7.1