geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kl...@apache.org
Subject [01/19] incubator-geode git commit: avoid invoking addOlderVersion for a version that isn't old
Date Thu, 21 Jan 2016 19:08:47 GMT
Repository: incubator-geode
Updated Branches:
  refs/heads/feature/GEODE-715 f936d7dfa -> d3263ec24


avoid invoking addOlderVersion for a version that isn't old


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/5eeb3313
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/5eeb3313
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/5eeb3313

Branch: refs/heads/feature/GEODE-715
Commit: 5eeb3313c43e86beff2358917d394c1ea04f1681
Parents: eb28f61
Author: Bruce Schuchardt <bschuchardt@pivotal.io>
Authored: Tue Jan 19 09:51:54 2016 -0800
Committer: Bruce Schuchardt <bschuchardt@pivotal.io>
Committed: Tue Jan 19 09:51:54 2016 -0800

----------------------------------------------------------------------
 .../gemfire/internal/cache/versions/RegionVersionHolder.java     | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/5eeb3313/gemfire-core/src/main/java/com/gemstone/gemfire/internal/cache/versions/RegionVersionHolder.java
----------------------------------------------------------------------
diff --git a/gemfire-core/src/main/java/com/gemstone/gemfire/internal/cache/versions/RegionVersionHolder.java
b/gemfire-core/src/main/java/com/gemstone/gemfire/internal/cache/versions/RegionVersionHolder.java
index c996031..2f337d1 100755
--- a/gemfire-core/src/main/java/com/gemstone/gemfire/internal/cache/versions/RegionVersionHolder.java
+++ b/gemfire-core/src/main/java/com/gemstone/gemfire/internal/cache/versions/RegionVersionHolder.java
@@ -335,7 +335,9 @@ public class RegionVersionHolder<T> implements Cloneable, DataSerializable
{
       this.version = version;
       return;
     }
-    this.addOlderVersion(version);
+    if (this.version > version) {
+      this.addOlderVersion(version);
+    }
     this.version = Math.max(this.version, version);
   }
 


Mime
View raw message