You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by sh...@apache.org on 2016/04/16 18:00:01 UTC

[trafficserver] branch master updated: Fix regress test. InkContInternal cleanup.

This is an automated email from the ASF dual-hosted git repository.

shinrich pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/trafficserver.git

The following commit(s) were added to refs/heads/master by this push:
       new  2776a2d   Fix regress test.  InkContInternal cleanup.
2776a2d is described below

commit 2776a2d3361726b451a57ad98956523b48a2a150
Author: shinrich <sh...@yahoo-inc.com>
AuthorDate: Sat Apr 16 10:59:26 2016 -0500

    Fix regress test.  InkContInternal cleanup.
---
 proxy/InkAPI.cc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/proxy/InkAPI.cc b/proxy/InkAPI.cc
index ee1adb9..025201f 100644
--- a/proxy/InkAPI.cc
+++ b/proxy/InkAPI.cc
@@ -961,6 +961,9 @@ INKContInternal::destroy()
   } else {
     // TODO: Should this schedule on some other "thread" ?
     // TODO: we don't care about the return action?
+    if (ink_atomic_increment((int *)&m_event_count, 1) < 0) {
+      ink_assert(!"not reached");
+    }
     this_ethread()->schedule_imm(this);
     Warning("INKCont not deletable %d %p", m_event_count, this);
   }

-- 
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>'].