jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r1299268 - /jackrabbit/sandbox/jackrabbit-mongo-persistence/src/main/java/org/apache/jackrabbit/core/persistence/mongo/MongoPersistenceManager.java
Date Sat, 10 Mar 2012 20:33:58 GMT
Author: stefan
Date: Sat Mar 10 20:33:58 2012
New Revision: 1299268

URL: http://svn.apache.org/viewvc?rev=1299268&view=rev
Log:
experimental mongo-based pm & ds (wip)

Modified:
    jackrabbit/sandbox/jackrabbit-mongo-persistence/src/main/java/org/apache/jackrabbit/core/persistence/mongo/MongoPersistenceManager.java

Modified: jackrabbit/sandbox/jackrabbit-mongo-persistence/src/main/java/org/apache/jackrabbit/core/persistence/mongo/MongoPersistenceManager.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jackrabbit-mongo-persistence/src/main/java/org/apache/jackrabbit/core/persistence/mongo/MongoPersistenceManager.java?rev=1299268&r1=1299267&r2=1299268&view=diff
==============================================================================
--- jackrabbit/sandbox/jackrabbit-mongo-persistence/src/main/java/org/apache/jackrabbit/core/persistence/mongo/MongoPersistenceManager.java
(original)
+++ jackrabbit/sandbox/jackrabbit-mongo-persistence/src/main/java/org/apache/jackrabbit/core/persistence/mongo/MongoPersistenceManager.java
Sat Mar 10 20:33:58 2012
@@ -233,7 +233,6 @@ public class MongoPersistenceManager ext
             throw new RepositoryException("failed to initialize MongoPersistenceManager",
e);
         }
 
-
         db = con.getDB(encodeName(dbName));
         db.setWriteConcern(WriteConcern.SAFE);
 
@@ -287,7 +286,7 @@ public class MongoPersistenceManager ext
                 throw new ItemStateException(msg, e);
             }
         } else {
-            throw new ItemStateException("failed to read bundle: " + nodeId);
+            return null;
         }
     }
 
@@ -347,7 +346,7 @@ public class MongoPersistenceManager ext
                 throw new ItemStateException(msg, e);
             }
         } else {
-            throw new ItemStateException("failed to load references: " + nodeId);
+            return null;
         }
     }
 



Mime
View raw message