• Views
  • Iteration Report
  • My Iteration Report
  •  
OMERO.server
  • Login
  • Help/Guide
  • About Trac
  • Preferences
  • Wiki
  • Timeline
  • Roadmap
  • Browse Source
  • View Tickets
  • Search

Context Navigation

  • ← Previous Change
  • Next Change →

Changeset 2594 for trunk/components/server/src/ome/services/sessions/SessionManagerImpl.java

Show
Ignore:
Timestamp:
07/05/08 22:16:05 (5 months ago)
Author:
jmoore
Message:

ticket:1018 - Changed reference counting logic

  • No longer using AtomicInteger
  • Count is not allowed to go below 0
  • Rather, SessionManager? uses sub-zero values
Files:
1 modified

  • trunk/components/server/src/ome/services/sessions/SessionManagerImpl.java (modified) (3 diffs)

Legend:

Unmodified
Added
Removed
  • trunk/components/server/src/ome/services/sessions/SessionManagerImpl.java

    r2592 r2594  
    313313    /* 
    314314     */ 
    315     public void close(String uuid) { 
     315    public int close(String uuid) { 
    316316 
    317317        SessionContext ctx; 
    … …  
    319319            ctx = cache.getSessionContext(uuid); 
    320320        } catch (SessionException se) { 
    321             return; // EARLY EXIT! 
     321            return -1; // EARLY EXIT! 
    322322        } 
    323323 
    … …  
    340340            // since ehcache is not tx-friendly. 
    341341            cache.removeSession(uuid); 
     342            return -2; 
     343        } else { 
     344            return refCount; 
    342345        } 
    343346    } 

Download in other formats:

  • Unified Diff
  • Zip Archive

Trac Powered

Powered by Trac 0.11
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/