jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chet...@apache.org
Subject svn commit: r1594158 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/Revision.java
Date Tue, 13 May 2014 09:09:32 GMT
Author: chetanm
Date: Tue May 13 09:09:32 2014
New Revision: 1594158

URL: http://svn.apache.org/r1594158
Log:
OAK-1813 - LastRevSingleNodeRecoveryTest fails with Mongo

lastRevisionTimestamp was not getting reset when Revision clock was getting reset in test
execution. This caused mismatch in timings. As a fix the  lastRevisionTimestamp would be set
to clock time upon reset

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=1594158&r1=1594157&r2=1594158&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
Tue May 13 09:09:32 2014
@@ -81,6 +81,7 @@ public class Revision {
     static void resetClockToDefault(){
         clock = Clock.SIMPLE;
         lastTimestamp = clock.getTime();
+        lastRevisionTimestamp = clock.getTime();
 
     }
     public Revision(long timestamp, int counter, int clusterId) {



Mime
View raw message