You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by se...@apache.org on 2016/02/01 16:32:48 UTC
[3/3] cxf git commit: Fixing the last commit
Fixing the last commit
Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/ad577419
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/ad577419
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/ad577419
Branch: refs/heads/3.1.x-fixes
Commit: ad577419dd39b1414080e6b34ed75db64254a150
Parents: 7b004fe
Author: Sergey Beryozkin <sb...@gmail.com>
Authored: Mon Feb 1 15:31:02 2016 +0000
Committer: Sergey Beryozkin <sb...@gmail.com>
Committed: Mon Feb 1 15:32:27 2016 +0000
----------------------------------------------------------------------
.../java/org/apache/cxf/throttling/SimpleThrottlingManager.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cxf/blob/ad577419/rt/features/throttling/src/main/java/org/apache/cxf/throttling/SimpleThrottlingManager.java
----------------------------------------------------------------------
diff --git a/rt/features/throttling/src/main/java/org/apache/cxf/throttling/SimpleThrottlingManager.java b/rt/features/throttling/src/main/java/org/apache/cxf/throttling/SimpleThrottlingManager.java
index 7dd8498..7c5ec84 100644
--- a/rt/features/throttling/src/main/java/org/apache/cxf/throttling/SimpleThrottlingManager.java
+++ b/rt/features/throttling/src/main/java/org/apache/cxf/throttling/SimpleThrottlingManager.java
@@ -43,9 +43,9 @@ public class SimpleThrottlingManager extends ThrottleResponse implements Throttl
if (m.containsKey(THROTTLED_KEY)) {
return null;
}
- m.put(ThrottlingCounter.class, counter);
+ m.getExchange().put(ThrottlingCounter.class, counter);
if (counter.incrementAndGet() >= threshold) {
- m.getExchange().put(THROTTLED_KEY, true);
+ m.put(THROTTLED_KEY, true);
return this;
} else {
return null;