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/07/07 12:11:18 UTC
cvs commit: jakarta-slide/src/webdav/server/org/apache/slide/webdav/method LockMethod.java
ozeigermann 2004/07/07 03:11:18
Modified: src/webdav/server/org/apache/slide/webdav/method
LockMethod.java
Log:
Lock duration will be used as timeout of transaction now
Revision Changes Path
1.65 +4 -3 jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/LockMethod.java
Index: LockMethod.java
===================================================================
RCS file: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/LockMethod.java,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -r1.64 -r1.65
--- LockMethod.java 5 Jul 2004 10:15:23 -0000 1.64
+++ LockMethod.java 7 Jul 2004 10:11:18 -0000 1.65
@@ -345,6 +345,7 @@
NodeLock lockToken = new NodeLock(toLockSubject.getUri(),((SubjectNode)security.getPrincipal(slideToken)).getUri(),
namespaceConfig.getCreateObjectAction().getUri(), lockDate,
inheritance, NodeLock.LOCAL, lockInfo_lockOwner);
+ token.setTransactionTimeout(lockDuration * 1000);
Transaction transaction = token.getTransactionManager().suspend();
String txId = lockToken.getLockId();
String fullTxId = "<" + S_LOCK_TOKEN + lockToken.getLockId() + ">";
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org