Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-9401

ServiceSemaphore: Check for Transaction before suspending it in dbWrite(...)

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Implemented
    • Affects Version/s: Trunk
    • Fix Version/s: Upcoming Release
    • Component/s: framework
    • Labels:
      None

      Description

      In ServiceSemaphore.dbWrite(...) the transaction is suspended without checking if there is a transaction in place. This results in logging a warning each time the TransactionUtil.suspend() method is invoked without a current transaction in place. The given patch cuts this unnecessary logging by checking if there is an transaction in place to suspend. If a transaction exists - suspend it.

        Activity

        Hide
        jacques.le.roux Jacques Le Roux added a comment -

        Thanks Martin,

        Your patch is in trunk at revision: 1804940

        Show
        jacques.le.roux Jacques Le Roux added a comment - Thanks Martin, Your patch is in trunk at revision: 1804940

          People

          • Assignee:
            jacques.le.roux Jacques Le Roux
            Reporter:
            mbecker Martin Becker
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development