svn commit: r571475 - /lenya/trunk/src/java/org/apache/lenya/cms/repository/SessionImpl.java

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Author: rfrovarp
Date: Fri Aug 31 07:13:27 2007
New Revision: 571475

URL: http://svn.apache.org/viewvc?rev=571475&view=rev
Log:
Synchronize access to committed.

Modified:
    lenya/trunk/src/java/org/apache/lenya/cms/repository/SessionImpl.java

Modified: lenya/trunk/src/java/org/apache/lenya/cms/repository/SessionImpl.java
URL: http://svn.apache.org/viewvc/lenya/trunk/src/java/org/apache/lenya/cms/repository/SessionImpl.java?rev=571475&r1=571474&r2=571475&view=diff
==============================================================================
--- lenya/trunk/src/java/org/apache/lenya/cms/repository/SessionImpl.java (original)
+++ lenya/trunk/src/java/org/apache/lenya/cms/repository/SessionImpl.java Fri Aug 31 07:13:27 2007
@@ -130,7 +130,7 @@
      * @throws ConcurrentModificationException if a transactionable has been modified by another
      *         session.
      */
-    public void commit() throws RepositoryException, ConcurrentModificationException {
+    public synchronized void commit() throws RepositoryException, ConcurrentModificationException {
 
         savePersistables();
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.