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 2f45c4154a59a0ab58cadfbea09ce5631c18aa99 Author: James Peach <[email protected]> AuthorDate: Sat May 7 15:01:57 2016 -0700 TS-4425: Switch InkIOCoreAPI.cc over to Ptr::get(). --- proxy/InkIOCoreAPI.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/proxy/InkIOCoreAPI.cc b/proxy/InkIOCoreAPI.cc index d8bbc36..cdd274f 100644 --- a/proxy/InkIOCoreAPI.cc +++ b/proxy/InkIOCoreAPI.cc @@ -588,7 +588,7 @@ TSIOBufferBlockNext(TSIOBufferBlock blockp) sdk_assert(sdk_sanity_check_iocore_structure(blockp) == TS_SUCCESS); IOBufferBlock *blk = (IOBufferBlock *)blockp; - return (TSIOBufferBlock)((IOBufferBlock *)blk->next); + return (TSIOBufferBlock)(blk->next.get()); } // dev API, not exposed @@ -615,7 +615,7 @@ TSIOBufferBlockReadStart(TSIOBufferBlock blockp, TSIOBufferReader readerp, int64 if (avail) *avail = blk->read_avail(); - if (blk == reader->block) { + if (reader->block.get() == blk) { p += reader->start_offset; if (avail) { *avail -= reader->start_offset; @@ -640,7 +640,7 @@ TSIOBufferBlockReadAvail(TSIOBufferBlock blockp, TSIOBufferReader readerp) avail = blk->read_avail(); - if (blk == reader->block) { + if (reader->block.get() == blk) { avail -= reader->start_offset; if (avail < 0) { avail = 0; @@ -728,8 +728,10 @@ TSIOBufferReaderStart(TSIOBufferReader readerp) IOBufferReader *r = (IOBufferReader *)readerp; - if (r->block != NULL) + if (r->block) { r->skip_empty_blocks(); + } + return reinterpret_cast<TSIOBufferBlock>(r->get_current_block()); } -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
