Author: andreas
Date: Fri Aug 10 09:27:49 2007
New Revision: 564656
URL: http://svn.apache.org/viewvc?view=rev&rev=564656
Log:
Removed unnecessary lock check
Modified:
lenya/trunk/src/modules/sourcerepository/java/src/org/apache/lenya/cms/repository/SourceNode.java
Modified: lenya/trunk/src/modules/sourcerepository/java/src/org/apache/lenya/cms/repository/SourceNode.java
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/sourcerepository/java/src/org/apache/lenya/cms/repository/SourceNode.java?view=diff&rev=564656&r1=564655&r2=564656
==============================================================================
--- lenya/trunk/src/modules/sourcerepository/java/src/org/apache/lenya/cms/repository/SourceNode.java (original)
+++ lenya/trunk/src/modules/sourcerepository/java/src/org/apache/lenya/cms/repository/SourceNode.java Fri Aug 10 09:27:49 2007
@@ -245,10 +245,6 @@
* @see org.apache.lenya.transaction.Transactionable#lock()
*/
public synchronized void lock() throws RepositoryException {
- if (isCheckedOut() && !isCheckedOutBySession()) {
- throw new RepositoryException("Cannot lock [" + this
- + "]: node is checked out by another session.");
- }
if (getLogger().isDebugEnabled()) {
getLogger().debug("Locking [" + this + "]");
}
@@ -409,7 +405,7 @@
}
public long getLastModified() throws RepositoryException {
-
+
if (!exists()) {
throw new RepositoryException("The node [" + this + "] does not exist!");
}
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.