Here’s a snippet from the Cloverleaf Documentation:
msgcopy
Produces a new message with data identical to msgId.
msgcopy msgId
Some metadata fields are copied, some are not (for example, the new message receives a different mid and its srcmid is set to the original message’s mid).
This command returns the new message handle.
I have the following tcl:
keylget args MSGID mh
echo “——————”
echo MID [msgmetaget $mh MID]
echo SOURCEMID [msgmetaget $mh SOURCEMID]
echo msgcopy….
set newmh [msgcopy $mh]
echo MID [msgmetaget $newmh MID]
echo SOURCEMID [msgmetaget $newmh SOURCEMID]
echo “——————”
lappend dispList “KILL $mh”
lappend dispList “CONTINUE $newmh”
The output from the tcl is like this.
MID {DOMAIN 0} {HUB 0} {NUM 61100}
SOURCEMID {DOMAIN {}} {HUB {}} {NUM {}}
msgcopy….
MID {DOMAIN 0} {HUB 0} {NUM 61101}
SOURCEMID {DOMAIN {}} {HUB {}} {NUM {}}
I would expect that the second SOURCEMID should have NUM=61100,
What am I missing here
/Torfinn