diff --git a/be/src/util/arrow/row_batch.h b/be/src/util/arrow/row_batch.h index 68d03ffcb90108..b1ac280f695886 100644 --- a/be/src/util/arrow/row_batch.h +++ b/be/src/util/arrow/row_batch.h @@ -68,7 +68,7 @@ Status convert_to_arrow_batch( Status convert_to_row_batch( const arrow::RecordBatch& batch, const RowDescriptor& row_desc, - std::shared_ptr tracker, + const std::shared_ptr& tracker, std::shared_ptr* result); Status serialize_record_batch(const arrow::RecordBatch& record_batch, std::string* result); diff --git a/be/test/runtime/load_channel_mgr_test.cpp b/be/test/runtime/load_channel_mgr_test.cpp index 386f44a7931c5c..1c7af66ec68479 100644 --- a/be/test/runtime/load_channel_mgr_test.cpp +++ b/be/test/runtime/load_channel_mgr_test.cpp @@ -45,7 +45,7 @@ OLAPStatus close_status; int64_t wait_lock_time_ns; // mock -DeltaWriter::DeltaWriter(WriteRequest* req, std::shared_ptr mem_tracker, +DeltaWriter::DeltaWriter(WriteRequest* req, const std::shared_ptr& mem_tracker, StorageEngine* storage_engine) : _req(*req) { } @@ -57,7 +57,7 @@ OLAPStatus DeltaWriter::init() { return OLAP_SUCCESS; } -OLAPStatus DeltaWriter::open(WriteRequest* req, std::shared_ptr mem_tracker, DeltaWriter** writer) { +OLAPStatus DeltaWriter::open(WriteRequest* req, const std::shared_ptr& mem_tracker, DeltaWriter** writer) { if (open_status != OLAP_SUCCESS) { return open_status; }