cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject [3/3] cxf git commit: Fixing the last commit
Date Mon, 01 Feb 2016 15:32:48 GMT
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 <sberyozkin@gmail.com>
Authored: Mon Feb 1 15:31:02 2016 +0000
Committer: Sergey Beryozkin <sberyozkin@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;


Mime
View raw message