Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-2885

Wrong connection object used in EmbedConnection.clearLOBMapping()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.3.1.4, 10.4.1.3
    • 10.3.1.4, 10.4.1.3
    • JDBC
    • None
    • Performance

    Description

      I think there are two bugs in EmbedConnection.clearLOBMapping():

      1) It checks if lobHashMap is non-null, but it should have checked rootConnection.lobHashMap.
      2) It calls getlobHMObj().clear() regardless of whether there is a HashMap. This creates a HashMap object even though it's not needed, and all the subsequent transactions on that connection have to perform cleanup on that object.

      Attachments

        1. lobmap2.diff
          1 kB
          Knut Anders Hatlen
        2. lobmap.diff
          0.7 kB
          Knut Anders Hatlen

        Activity

          People

            knutanders Knut Anders Hatlen
            knutanders Knut Anders Hatlen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: