trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jpe...@apache.org
Subject [trafficserver] 22/33: TS-4425: Switch RamCacheCLFUS over to Ptr::get().
Date Wed, 11 May 2016 20:31:46 GMT
This is an automated email from the ASF dual-hosted git repository.

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

commit 5841b5c20532f9608c2ad0689affbb2971599856
Author: James Peach <jpeach@apache.org>
AuthorDate: Thu May 5 22:34:20 2016 -0700

    TS-4425: Switch RamCacheCLFUS over to Ptr::get().
---
 iocore/cache/RamCacheCLFUS.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/iocore/cache/RamCacheCLFUS.cc b/iocore/cache/RamCacheCLFUS.cc
index c186214..7aa3375 100644
--- a/iocore/cache/RamCacheCLFUS.cc
+++ b/iocore/cache/RamCacheCLFUS.cc
@@ -302,10 +302,10 @@ RamCacheCLFUS::get(INK_MD5 *key, Ptr<IOBufferData> *ret_data,
uint32_t auxkey1,
           }
           (*ret_data) = data;
         } else {
-          IOBufferData *data = e->data;
+          IOBufferData *data = e->data.get();
           if (e->flag_bits.copy) {
             data = new_IOBufferData(iobuffer_size_to_index(e->len, MAX_BUFFER_SIZE_INDEX),
MEMALIGNED);
-            memcpy(data->data(), e->data->data(), e->len);
+            ::memcpy(data->data(), e->data->data(), e->len);
           }
           (*ret_data) = data;
         }

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

Mime
View raw message