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

Simplify handling of maxPos in UpdatableBlobStream and ClobUpdatableReader

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 10.3.1.4, 10.4.1.3
    • 10.3.1.4, 10.4.1.3
    • JDBC
    • None

    Description

      UpdatableBlobStream and ClobUpdatableReader have a maxPos field which tells when to stop reading the underlying stream regardless of whether or not end-of-stream has been reached. If there is no limit, maxPos is set to -1. If we instead set maxPos to infinity (Long.MAX_VALUE is close enough), the special handling of maxPos==-1 could be removed.

      Attachments

        1. maxpos.stat
          0.1 kB
          Knut Anders Hatlen
        2. maxpos.diff
          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: