You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by jp...@apache.org on 2011/07/09 23:08:26 UTC

svn commit: r1144746 - /trafficserver/traffic/trunk/iocore/eventsystem/I_Lock.h

Author: jplevyak
Date: Sat Jul  9 21:08:25 2011
New Revision: 1144746

URL: http://svn.apache.org/viewvc?rev=1144746&view=rev
Log:
This debug only assert would have caught the DNSEvent bug.

Modified:
    trafficserver/traffic/trunk/iocore/eventsystem/I_Lock.h

Modified: trafficserver/traffic/trunk/iocore/eventsystem/I_Lock.h
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/iocore/eventsystem/I_Lock.h?rev=1144746&r1=1144745&r2=1144746&view=diff
==============================================================================
--- trafficserver/traffic/trunk/iocore/eventsystem/I_Lock.h (original)
+++ trafficserver/traffic/trunk/iocore/eventsystem/I_Lock.h Sat Jul  9 21:08:25 2011
@@ -383,6 +383,7 @@ Mutex_trylock(
 {
 
   ink_assert(t != 0);
+  ink_debug_assert(t == (EThread*)this_thread());
   if (m->thread_holding != t) {
     if (!ink_mutex_try_acquire(&m->the_mutex)) {
 #ifdef DEBUG