geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dschnei...@apache.org
Subject geode git commit: postDestroyRegion now removes itself from colocated parent colocatedByList
Date Sat, 21 Jan 2017 00:06:55 GMT
Repository: geode
Updated Branches:
  refs/heads/feature/GEM-1195 [created] 5b78f5d24


postDestroyRegion now removes itself from colocated parent colocatedByList


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

Branch: refs/heads/feature/GEM-1195
Commit: 5b78f5d24a7b5dbee3f1ae7fa84805aeb3db5e62
Parents: 4d58778
Author: Darrel Schneider <dschneider@pivotal.io>
Authored: Fri Jan 20 16:05:41 2017 -0800
Committer: Darrel Schneider <dschneider@pivotal.io>
Committed: Fri Jan 20 16:05:41 2017 -0800

----------------------------------------------------------------------
 .../java/org/apache/geode/internal/cache/PartitionedRegion.java | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/geode/blob/5b78f5d2/geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegion.java
----------------------------------------------------------------------
diff --git a/geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegion.java
b/geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegion.java
index 44f8427..7bc6e97 100755
--- a/geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegion.java
+++ b/geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegion.java
@@ -7911,6 +7911,11 @@ public class PartitionedRegion extends LocalRegion
         }
       }
     }
+    if (colocatedWithRegion != null) {
+      synchronized (colocatedWithRegion.colocatedByList) {
+        colocatedWithRegion.colocatedByList.remove(this);
+      }
+    }
 
     RegionLogger.logDestroy(getName(), cache.getMyId(), null, op.isClose());
   }


Mime
View raw message