jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r1453810 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/MongoJournal.java
Date Thu, 07 Mar 2013 12:30:34 GMT
Author: jukka
Date: Thu Mar  7 12:30:33 2013
New Revision: 1453810

URL: http://svn.apache.org/r1453810
Log:
OAK-633: SegmentMK: Hierarchy of journals

Fix MongoJournal initialization

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/MongoJournal.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/MongoJournal.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/MongoJournal.java?rev=1453810&r1=1453809&r2=1453810&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/MongoJournal.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/MongoJournal.java
Thu Mar  7 12:30:33 2013
@@ -34,11 +34,12 @@ class MongoJournal implements Journal {
 
     private long nextUpdate = System.nanoTime() - 2 * UPDATE_INTERVAL;
 
-    private RecordId head = getHead();
+    private RecordId head;
 
     MongoJournal(DBCollection journals, String name) {
         this.journals = journals;
         this.name = name;
+        head = getHead();
     }
 
     @Override



Mime
View raw message