ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject ignite git commit: ignite-3477 Minor.
Date Tue, 24 Jan 2017 12:49:23 GMT
Repository: ignite
Updated Branches:
  refs/heads/ignite-3477 8ef417c14 -> 4cf2b3da8


ignite-3477 Minor.


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/4cf2b3da
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/4cf2b3da
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/4cf2b3da

Branch: refs/heads/ignite-3477
Commit: 4cf2b3da84abd6baa870385f21745ccb29aa1e78
Parents: 8ef417c
Author: sboikov <sboikov@gridgain.com>
Authored: Tue Jan 24 15:49:13 2017 +0300
Committer: sboikov <sboikov@gridgain.com>
Committed: Tue Jan 24 15:49:13 2017 +0300

----------------------------------------------------------------------
 .../processors/cache/database/tree/io/IOVersions.java         | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/4cf2b3da/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/database/tree/io/IOVersions.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/database/tree/io/IOVersions.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/database/tree/io/IOVersions.java
index 428cb3f..3545b32 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/database/tree/io/IOVersions.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/database/tree/io/IOVersions.java
@@ -27,6 +27,9 @@ public final class IOVersions<V extends PageIO> {
     /** */
     private final int type;
 
+    /** */
+    private final V latest;
+
     /**
      * @param vers Versions.
      */
@@ -38,6 +41,8 @@ public final class IOVersions<V extends PageIO> {
         this.vers = vers;
         this.type = vers[0].getType();
 
+        latest = vers[vers.length - 1];
+
         assert checkVersions();
     }
 
@@ -66,7 +71,7 @@ public final class IOVersions<V extends PageIO> {
      * @return Latest IO version.
      */
     public V latest() {
-        return forVersion(vers.length);
+        return latest;
     }
 
     /**


Mime
View raw message