jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r1547704 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/file/FileStore.java
Date Wed, 04 Dec 2013 04:22:33 GMT
Author: jukka
Date: Wed Dec  4 04:22:32 2013
New Revision: 1547704

URL: http://svn.apache.org/r1547704
Log:
OAK-593: Segment-based MK

Only mark the TarMK journal as updated if something actually did change

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

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/file/FileStore.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/file/FileStore.java?rev=1547704&r1=1547703&r2=1547704&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/file/FileStore.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/file/FileStore.java
Wed Dec  4 04:22:32 2013
@@ -221,8 +221,8 @@ public class FileStore extends AbstractS
             public boolean setHead(RecordId base, RecordId head) {
                 synchronized (FileStore.this) {
                     if (base.equals(FileStore.this.head)) {
+                        updated = !head.equals(FileStore.this.head);
                         FileStore.this.head = head;
-                        updated = true;
                         return true;
                     } else {
                         return false;



Mime
View raw message