agingade commented on a change in pull request #7441:
URL: https://github.com/apache/geode/pull/7441#discussion_r825197561



##########
File path: 
geode-core/src/main/java/org/apache/geode/internal/cache/AbstractRegionMap.java
##########
@@ -384,8 +365,7 @@ public void close(BucketRegion bucketRegion) {
     RegionVersionVector localRvv = lr.getVersionVector();
     incClearCount(lr);
     // lock for size calcs if the region might have tombstones
-    Object lockObj = lr.getConcurrencyChecksEnabled() ? lr.getSizeGuard() : 
new Object();
-    synchronized (lockObj) {
+    synchronized (lr.getSizeGuard()) {

Review comment:
       This doesn't seem to be just removal of unused code; seems like an issue 
has been fixed here...If its fixing the issue, can we also mention this in PR 
comments. 




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to