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 2016/05/11 20:31:46 UTC
[trafficserver] 22/33: TS-4425: Switch RamCacheCLFUS over to
Ptr::get().
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 <jp...@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" <co...@trafficserver.apache.org>.