[infinispan-dev] optimistic locking :: Flag.FORCE_WRITE_LOCK

Mircea Markus mircea.markus at jboss.com
Mon Sep 5 05:13:31 EDT 2011


Hi,

In default mode, when:
advancedCache.withFlags(Flag.FORCE_WRITE_LOCK).get("k")
gets executed a W lock is acquired on "k". With the new optimistic locking model we only acquire a locks at prepare time, so the semantic of the above call might need to change.
What I have in mind is to force the W lock acquisition to happen but only at prepare time - how does that sound?

Cheers,
Mircea


More information about the infinispan-dev mailing list