This is an automated email from the ASF dual-hosted git repository.
eshu11 pushed a commit to branch feature/GEODE-5376
in repository https://gitbox.apache.org/repos/asf/geode.git
The following commit(s) were added to refs/heads/feature/GEODE-5376 by this
push:
new 46821e7 Correct a comment: no longer have a waiting thread.
46821e7 is described below
commit 46821e7765bc67da54246c3015441e009f2e0125
Author: eshu <[email protected]>
AuthorDate: Wed Jul 18 10:35:40 2018 -0700
Correct a comment: no longer have a waiting thread.
---
geode-core/src/main/java/org/apache/geode/internal/cache/TXState.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git
a/geode-core/src/main/java/org/apache/geode/internal/cache/TXState.java
b/geode-core/src/main/java/org/apache/geode/internal/cache/TXState.java
index f85b98d..d9c5a05 100644
--- a/geode-core/src/main/java/org/apache/geode/internal/cache/TXState.java
+++ b/geode-core/src/main/java/org/apache/geode/internal/cache/TXState.java
@@ -1068,8 +1068,7 @@ public class TXState implements TXStateInterface {
@Override
public void afterCompletion(int status) {
this.proxy.getTxMgr().setTXState(null);
- // if there was a beforeCompletion call then there will be a thread
- // sitting in the waiting pool to execute afterCompletion. Otherwise
+ // For commit, beforeCompletion should be called. Otherwise
// throw FailedSynchronizationException().
if (wasBeforeCompletionCalled()) {
doAfterCompletion(status);