Feature #299

Add new flag in order to avoid TRANSACTION ABORT if no message in QSPACE

Added by Abderrahime about 6 years ago. Updated about 6 years ago.

Status:ClosedStart date:04/06/2018
Priority:Normal (Code 4)Due date:
Assignee:-% Done:

100%

Category:-
Target version:-

Description

Hello,

I suggest to add a new flag TPNOABORT in order to avoid transaction abort if no message found in qspace, sometimes we need to read more than 1 message in one shot and the stop condition is no data found in the queues, but as it now if no data found the transaction is aborted.

file /include/xatmi.h b/include/xatmi.h
+ /* AAL Add new flag in order to avoid TRANSACTION ABORT if no message in QSPACE */
+#define TPNOABORT 0x00004000

file /libatmi/tpcall.c
- if ( !(flags & TPNOTRAN) && /* Do not abort, if TPNOTRAN specified. /
+ if ( !(flags & TPNOTRAN) && !(flags & TPNOABORT) && /
Do not abort, if TPNOTRAN specified. */

BR,

History

#1 Updated by Madars about 6 years ago

Hi Abderrahime,

Not bad idea! We will schedule to add this feature!

#2 Updated by Madars about 6 years ago

Implemented https://github.com/endurox-dev/endurox/commit/c959ff238016879ecf6474b133231a49144e4d81

Available in 5.3.8+.

You may grab the sources and build the version ;)
Binary releases will be available in next week!

#3 Updated by Madars about 6 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

#4 Updated by Madars about 6 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF