Uploaded image for project: 'Commons JCS'
  1. Commons JCS
  2. JCS-36

client count decreased too often in IndexedDiskCacheManager.release

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • jcs-1.3, jcs-2.0-beta-1
    • jcs-2.0-beta-1
    • Indexed Disk Cache
    • None

    Description

      The release() method decreases the client count TWICE during each invocation. As getInstance increases the client count only once release will not work as expected:

      public void release()
      {
      clients--;

      if ( --clients != 0 )

      { return; }

      should be changed into

      public void release()
      {
      if ( --clients != 0 )
      { return; }

      Attachments

        Activity

          People

            asmuts Aaron Smuts
            u_302321 Matthias Kerkhoff
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: