This is an automated email from the ASF dual-hosted git repository. yiguolei pushed a commit to branch branch-2.1 in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.1 by this push: new 0791598e56a fix compile 0791598e56a is described below commit 0791598e56a10553e25f36f077e8793c33bf9f20 Author: yiguolei <yiguo...@gmail.com> AuthorDate: Thu Feb 8 15:24:35 2024 +0800 fix compile --- be/src/olap/delta_writer_v2.cpp | 10 +--------- be/src/olap/delta_writer_v2.h | 9 ++------- 2 files changed, 3 insertions(+), 16 deletions(-) diff --git a/be/src/olap/delta_writer_v2.cpp b/be/src/olap/delta_writer_v2.cpp index e97db641a80..a9b8ff58f34 100644 --- a/be/src/olap/delta_writer_v2.cpp +++ b/be/src/olap/delta_writer_v2.cpp @@ -65,17 +65,9 @@ namespace doris { using namespace ErrorCode; -std::unique_ptr<DeltaWriterV2> DeltaWriterV2::open( - WriteRequest* req, const std::vector<std::shared_ptr<LoadStreamStub>>& streams, - RuntimeState* state) { - std::unique_ptr<DeltaWriterV2> writer( - new DeltaWriterV2(req, streams, StorageEngine::instance(), state)); - return writer; -} - DeltaWriterV2::DeltaWriterV2(WriteRequest* req, const std::vector<std::shared_ptr<LoadStreamStub>>& streams, - StorageEngine* storage_engine, RuntimeState* state) + RuntimeState* state) : _state(state), _req(*req), _tablet_schema(new TabletSchema), diff --git a/be/src/olap/delta_writer_v2.h b/be/src/olap/delta_writer_v2.h index 3b6c0093a1a..e9e051608d2 100644 --- a/be/src/olap/delta_writer_v2.h +++ b/be/src/olap/delta_writer_v2.h @@ -65,10 +65,8 @@ class DeltaWriterV2 { ENABLE_FACTORY_CREATOR(DeltaWriterV2); public: - static std::unique_ptr<DeltaWriterV2> open( - WriteRequest* req, const std::vector<std::shared_ptr<LoadStreamStub>>& streams, - RuntimeState* state); - + DeltaWriterV2(WriteRequest* req, const std::vector<std::shared_ptr<LoadStreamStub>>& streams, + RuntimeState* state); ~DeltaWriterV2(); Status init(); @@ -90,9 +88,6 @@ public: Status cancel_with_status(const Status& st); private: - DeltaWriterV2(WriteRequest* req, const std::vector<std::shared_ptr<LoadStreamStub>>& streams, - StorageEngine* storage_engine, RuntimeState* state); - void _build_current_tablet_schema(int64_t index_id, const OlapTableSchemaParam* table_schema_param, const TabletSchema& ori_tablet_schema); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org