diff --git a/be/src/olap/olap_common.h b/be/src/olap/olap_common.h index 8a1e12fad24121..33e81e3b7a1bcc 100644 --- a/be/src/olap/olap_common.h +++ b/be/src/olap/olap_common.h @@ -383,8 +383,6 @@ using ColumnId = uint32_t; using UniqueIdSet = std::set; // Column unique Id -> column id map using UniqueIdToColumnIdMap = std::map; -struct RowsetId; -RowsetId next_rowset_id(); // 8 bit rowset id version // 56 bit, inc number from 1 diff --git a/be/src/olap/rowset/unique_rowset_id_generator.cpp b/be/src/olap/rowset/unique_rowset_id_generator.cpp index 44d049b3002655..0d7d77915e0cb5 100644 --- a/be/src/olap/rowset/unique_rowset_id_generator.cpp +++ b/be/src/olap/rowset/unique_rowset_id_generator.cpp @@ -20,8 +20,6 @@ #include #include -#include "olap/storage_engine.h" -#include "runtime/exec_env.h" #include "util/doris_metrics.h" #include "util/metrics.h" #include "util/spinlock.h" @@ -31,10 +29,6 @@ namespace doris { DEFINE_GAUGE_METRIC_PROTOTYPE_2ARG(rowset_count_generated_and_in_use, MetricUnit::ROWSETS); -RowsetId next_rowset_id() { - return ExecEnv::GetInstance()->storage_engine()->next_rowset_id(); -} - UniqueRowsetIdGenerator::UniqueRowsetIdGenerator(const UniqueId& backend_uid) : _backend_uid(backend_uid), _inc_id(0) { REGISTER_HOOK_METRIC(rowset_count_generated_and_in_use, [this]() {