[infinispan-dev] First working version of lock/unlock API

Vladimir Blagojevic vblagoje at redhat.com
Tue May 19 04:41:26 EDT 2009


On 5/19/09 9:33 AM, Vladimir Blagojevic wrote:
>> 8.  Test that locks are NOT released despite unlock if the key is 
>> modified in the tx.  Should only unlock on commit/rollback in this case.
>>
> I finished all tests except 8. I am confused with implied semantic of 
> unlock. What is the point of having unlock then? If we are allowing 
> locking with transactions only why do we need unlock?
>
Thought a little bit more about this. Does point 8 imply that key should 
be released on unlock if it was *not* modified and on commit/rollback if 
it was modified?




More information about the infinispan-dev mailing list