geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bschucha...@apache.org
Subject [geode] branch feature/GEODE-4928 updated: GEODE-4928
Date Fri, 23 Mar 2018 23:24:36 GMT
This is an automated email from the ASF dual-hosted git repository.

bschuchardt pushed a commit to branch feature/GEODE-4928
in repository https://gitbox.apache.org/repos/asf/geode.git


The following commit(s) were added to refs/heads/feature/GEODE-4928 by this push:
     new d8e30a0  GEODE-4928
d8e30a0 is described below

commit d8e30a0de6c8742dde53d9203cd122e9bc710849
Author: Bruce Schuchardt <bschuchardt@pivotal.io>
AuthorDate: Fri Mar 23 16:23:55 2018 -0700

    GEODE-4928
    
    addressing review comment
---
 .../apache/geode/internal/cache/locks/TXLessorDepartureHandler.java  | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/geode-core/src/main/java/org/apache/geode/internal/cache/locks/TXLessorDepartureHandler.java
b/geode-core/src/main/java/org/apache/geode/internal/cache/locks/TXLessorDepartureHandler.java
index ecbf74d..53f998e 100755
--- a/geode-core/src/main/java/org/apache/geode/internal/cache/locks/TXLessorDepartureHandler.java
+++ b/geode-core/src/main/java/org/apache/geode/internal/cache/locks/TXLessorDepartureHandler.java
@@ -42,10 +42,9 @@ public class TXLessorDepartureHandler implements DLockLessorDepartureHandler
{
   @Override
   public void waitForInProcessDepartures() throws InterruptedException {
     synchronized (stateLock) {
-      if (!processingDepartures) {
-        return;
+      while (processingDepartures) {
+        stateLock.wait();
       }
-      stateLock.wait();
     }
   }
 

-- 
To stop receiving notification emails like this one, please contact
bschuchardt@apache.org.

Mime
View raw message