trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jplev...@apache.org
Subject svn commit: r1069926 - /trafficserver/traffic/trunk/iocore/cache/CacheRead.cc
Date Fri, 11 Feb 2011 19:31:32 GMT
Author: jplevyak
Date: Fri Feb 11 19:31:32 2011
New Revision: 1069926

URL: http://svn.apache.org/viewvc?rev=1069926&view=rev
Log:
prevent a debug assert by clearning the open directory pointer for a read

Modified:
    trafficserver/traffic/trunk/iocore/cache/CacheRead.cc

Modified: trafficserver/traffic/trunk/iocore/cache/CacheRead.cc
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/iocore/cache/CacheRead.cc?rev=1069926&r1=1069925&r2=1069926&view=diff
==============================================================================
--- trafficserver/traffic/trunk/iocore/cache/CacheRead.cc (original)
+++ trafficserver/traffic/trunk/iocore/cache/CacheRead.cc Fri Feb 11 19:31:32 2011
@@ -306,8 +306,10 @@ CacheVC::openReadFromWriter(int event, E
 #ifndef READ_WHILE_WRITER
   return openReadFromWriterFailure(CACHE_EVENT_OPEN_READ_FAILED, (Event *) -err);
 #else
-  if (_action.cancelled)
+  if (_action.cancelled) {
+    od = NULL; // only open for read so no need to close
     return free_CacheVC(this);
+  }
   CACHE_TRY_LOCK(lock, part->mutex, mutex->thread_holding);
   if (!lock)
     VC_SCHED_LOCK_RETRY();



Mime
View raw message