3 Replies Latest reply on Oct 10, 2005 10:49 AM by belaban

    locking individual node

    stelang

      Hi,
      My application is doing a cache.put("/a/b/c", ,);
      cache mode is REPL_SYNC and IsolationLevel is REPEATABLE_READ.
      With this method call, all the 3 nodes i.e the entire path '/a/b/c' is locked.
      Is there any way to lock only node 'c' and not the entire path? Thanks for your help.

        • 1. Re: locking individual node

          Cache will only do a write lock on /a, /a/b, and /a/b/c for the node creation. After that, only write lock on /a/b/c.

          -Ben

          • 2. Re: locking individual node
            stelang

            Thanks for your reply. So. for updating node c, the entire path /a/b/c will have a write lock, correct? So, I cannot update 2 nodes /a/b/c and /a/b/d simultaneously as /a/b will have a write lock. Thanks again.

            • 3. Re: locking individual node
              belaban

              No, a and a/b will have a RL, a/b/c a WL. So you can update /a/b/c and a/b/d concurrently, except with isolation level SERIALIZABLE (where RLs cannot be concurrently held)