jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r1583944 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/Revision.java
Date Wed, 02 Apr 2014 09:31:39 GMT
Author: mreutegg
Date: Wed Apr  2 09:31:39 2014
New Revision: 1583944

URL: http://svn.apache.org/r1583944
Log:
OAK-1663: Long running RevisionTest

Reset lastTimestamp to current time millis when clock is unset

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/Revision.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/Revision.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/Revision.java?rev=1583944&r1=1583943&r2=1583944&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/Revision.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/Revision.java
Wed Apr  2 09:31:39 2014
@@ -72,6 +72,9 @@ public class Revision {
      */
     static void setClock(Clock c) {
         clock = c;
+        if (c == null) {
+            lastTimestamp = System.currentTimeMillis();
+        }
     }
     public Revision(long timestamp, int counter, int clusterId) {
         this(timestamp, counter, clusterId, false);



Mime
View raw message