This is an automated email from the ASF dual-hosted git repository.

mochen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new 0fa3226162 CID 1518594 (#10522)
0fa3226162 is described below

commit 0fa3226162aa28c598d4dd26df3bed21b62c0fc3
Author: Mo Chen <[email protected]>
AuthorDate: Tue Sep 26 10:09:32 2023 -0500

    CID 1518594 (#10522)
    
    Move std::shared_ptr to skip reference counting.
---
 plugins/experimental/inliner/inliner-handler.cc | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/plugins/experimental/inliner/inliner-handler.cc 
b/plugins/experimental/inliner/inliner-handler.cc
index 0477bd5089..6e2a8cc6a8 100644
--- a/plugins/experimental/inliner/inliner-handler.cc
+++ b/plugins/experimental/inliner/inliner-handler.cc
@@ -33,7 +33,12 @@ namespace ats
 namespace inliner
 {
   Handler::Handler(const TSIOBufferReader r, ats::io::IOSinkPointer &&i)
-    : ioSink_(i), sink_(ioSink_->branch()), sink2_(sink_->branch()), 
reader_(TSIOBufferReaderClone(r)), counter_(0), abort_(false)
+    : ioSink_(std::move(i)),
+      sink_(ioSink_->branch()),
+      sink2_(sink_->branch()),
+      reader_(TSIOBufferReaderClone(r)),
+      counter_(0),
+      abort_(false)
   {
     assert(ioSink_);
     assert(sink_);

Reply via email to