geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From esh...@apache.org
Subject incubator-geode git commit: GEODE-1649: Fixes IllegalStateException in mock junit test.
Date Tue, 12 Jul 2016 16:24:27 GMT
Repository: incubator-geode
Updated Branches:
  refs/heads/develop 8b83f825a -> b35d330fc


GEODE-1649: Fixes IllegalStateException in mock junit test.


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

Branch: refs/heads/develop
Commit: b35d330fcef87cab84611f6c14646655b11804a7
Parents: 8b83f82
Author: eshu <eshu@pivotal.io>
Authored: Tue Jul 12 09:22:35 2016 -0700
Committer: eshu <eshu@pivotal.io>
Committed: Tue Jul 12 09:22:35 2016 -0700

----------------------------------------------------------------------
 .../java/com/gemstone/gemfire/internal/cache/TXLockRequest.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/b35d330f/geode-core/src/main/java/com/gemstone/gemfire/internal/cache/TXLockRequest.java
----------------------------------------------------------------------
diff --git a/geode-core/src/main/java/com/gemstone/gemfire/internal/cache/TXLockRequest.java
b/geode-core/src/main/java/com/gemstone/gemfire/internal/cache/TXLockRequest.java
index 323d98e..b9594d5 100644
--- a/geode-core/src/main/java/com/gemstone/gemfire/internal/cache/TXLockRequest.java
+++ b/geode-core/src/main/java/com/gemstone/gemfire/internal/cache/TXLockRequest.java
@@ -94,8 +94,8 @@ public class TXLockRequest {
    * Release any distributed locks obtained by this request
    */
   public void releaseDistributed() {
-    TXLockService txls = TXLockService.createDTLS();
     if (this.distLockId != null) {
+      TXLockService txls = TXLockService.createDTLS();
       txls.release(this.distLockId);
       this.distLockId = null;
     }


Mime
View raw message