Derby
  1. Derby
  2. DERBY-5759

Add IndexStatsUtil.release(boolean closeConnection)

    Details

    • Type: Task Task
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 10.9.1.0
    • Fix Version/s: 10.9.1.0
    • Component/s: Test
    • Labels:
      None

      Description

      IndexStatsUtil already has a method called release that takes no arguments. It closes the connection, which can be a problem in cases where the util shares the connection with someone else.

      I propose to add the method release(boolean closeConnection).
      Note that the util still requires the connection to be auto-commit mode.

        Activity

        Hide
        Kristian Waagan added a comment -

        Thanks, Dag.

        Committed to trunk with revision 1338068.

        Show
        Kristian Waagan added a comment - Thanks, Dag. Committed to trunk with revision 1338068.
        Hide
        Dag H. Wanvik added a comment -

        Looks straight forward enough. +1

        Show
        Dag H. Wanvik added a comment - Looks straight forward enough. +1
        Hide
        Kristian Waagan added a comment -

        Attaching patch 1a, which adds a release(boolean) method.

        Patch ready for review.

        Show
        Kristian Waagan added a comment - Attaching patch 1a, which adds a release(boolean) method. Patch ready for review.

          People

          • Assignee:
            Kristian Waagan
            Reporter:
            Kristian Waagan
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development