[Devel] [ openser-Bugs-1652854 ] t_relay() always returns error
after t_newtran()
SourceForge.net
noreply at sourceforge.net
Fri Feb 16 15:47:02 CET 2007
Bugs item #1652854, was opened at 2007-02-06 03:34
Message generated for change (Settings changed) made by bogdan_iancu
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1652854&group_id=139143
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: ver devel
>Status: Closed
>Resolution: Invalid
Priority: 5
Private: No
Submitted By: Kobi Eshun (ekobi)
Assigned to: Bogdan (bogdan_iancu)
Summary: t_relay() always returns error after t_newtran()
Initial Comment:
The documentation for t_relay() claims that "The coresponding transaction may or may not be already created. If not yet created, the function will automatically create it."
But t_relay() always returns an error if t_newtran() has been called beforehand.
--
kobi
----------------------------------------------------------------------
Comment By: Bogdan (bogdan_iancu)
Date: 2007-02-07 14:32
Message:
Logged In: YES
user_id=1275325
Originator: NO
I also tested this case and it works as expected. Be sure:
1) you are using latest devel version
2) the error msg you get is actually triggerd by t_relay() and not by
other t_newtran - use xlog/log after t_newtran() and before the t_relay()
functs.
regards,
bogdan
----------------------------------------------------------------------
Comment By: Aron Rosenberg (amr42)
Date: 2007-02-07 00:14
Message:
Logged In: YES
user_id=43318
Originator: NO
We would see this error in the logs if we called t_relay after calling
t_newtran
/usr/sbin/openser[15747]: ERROR: t_newtran: transaction already in
process 0xb5b68788
The only difference is that we were calling t_relay in a different route[]
block from where we called t_newtran.
so
route[0]
{
t_newtran();
route[1];
}
route[1]
{
t_relay(); <--- error above printed here.
}
----------------------------------------------------------------------
Comment By: Bogdan (bogdan_iancu)
Date: 2007-02-06 11:16
Message:
Logged In: YES
user_id=1275325
Originator: NO
Hi Kobi,
I just tested a simple script like:
t_newtran();
xlog("-----------newtran=$retcode\n");
t_relay();
xlog("-----------newtran=$retcode\n");
and everything went ok.
could you please post the relevant part of the script you are using? also,
the debug output will be very helpful.
thanks and regards,
bogdan
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2007-02-06 03:54
Message:
Logged In: NO
This is if you call t_relay later in the same script execution line as
t_newtran
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1652854&group_id=139143
More information about the Devel
mailing list