You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-commits@jackrabbit.apache.org by al...@apache.org on 2015/10/06 17:58:49 UTC
svn commit: r1707078 -
/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/SegmentTracker.java
Author: alexparvulescu
Date: Tue Oct 6 15:58:49 2015
New Revision: 1707078
URL: http://svn.apache.org/viewvc?rev=1707078&view=rev
Log:
OAK-3479 Add generation info to compaction map
- moved up compactionmap inintialization to prevent possible NPE
Modified:
jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/SegmentTracker.java
Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/SegmentTracker.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/SegmentTracker.java?rev=1707078&r1=1707077&r2=1707078&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/SegmentTracker.java (original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/SegmentTracker.java Tue Oct 6 15:58:49 2015
@@ -113,9 +113,9 @@ public class SegmentTracker {
}
this.store = store;
- this.writer = new SegmentWriter(store, this, version);
this.compactionMap = new AtomicReference<CompactionMap>(
CompactionMap.EMPTY);
+ this.writer = new SegmentWriter(store, this, version);
StringCache c;
if (DISABLE_STRING_CACHE) {
c = null;