You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by oz...@apache.org on 2004/10/26 12:22:05 UTC

cvs commit: jakarta-slide/src/webdav/server/org/apache/slide/webdav/method MkcolMethod.java

ozeigermann    2004/10/26 03:22:05

  Modified:    src/webdav/server/org/apache/slide/webdav/method
                        MkcolMethod.java
  Log:
  Added fine grained locking
  
  Revision  Changes    Path
  1.40      +14 -4     jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/MkcolMethod.java
  
  Index: MkcolMethod.java
  ===================================================================
  RCS file: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/MkcolMethod.java,v
  retrieving revision 1.39
  retrieving revision 1.40
  diff -u -r1.39 -r1.40
  --- MkcolMethod.java	12 Sep 2004 17:47:50 -0000	1.39
  +++ MkcolMethod.java	26 Oct 2004 10:22:05 -0000	1.40
  @@ -51,7 +51,7 @@
    */
   public class MkcolMethod
       extends AbstractWebdavMethod
  -    implements DeltavConstants, WriteMethod {
  +    implements DeltavConstants, WriteMethod, FineGrainedLockingMethod {
       
       
       // ----------------------------------------------------- Instance Variables
  @@ -75,6 +75,16 @@
       }
       
       
  +    /**
  +     * @see org.apache.slide.webdav.method.FineGrainedLockingMethod#acquireFineGrainLocks()
  +     */
  +    public void acquireFineGrainLocks() {
  +        acquireStandardLocks(colName);
  +        // changes this and parent
  +        acquireLock(colName, WRITE_LOCK);
  +        acquireParentLock(colName, WRITE_LOCK);
  +    }
  +
       // ------------------------------------------------------ Protected Methods
       
       
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org