Skip to content

Commit

Permalink
3
Browse files Browse the repository at this point in the history
  • Loading branch information
Yukang-Lian committed Jan 2, 2025
1 parent 47586ac commit ce05c47
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions be/src/olap/olap_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -383,8 +383,6 @@ using ColumnId = uint32_t;
using UniqueIdSet = std::set<uint32_t>;
// Column unique Id -> column id map
using UniqueIdToColumnIdMap = std::map<ColumnId, ColumnId>;
struct RowsetId;
RowsetId next_rowset_id();

// 8 bit rowset id version
// 56 bit, inc number from 1
Expand Down
6 changes: 0 additions & 6 deletions be/src/olap/rowset/unique_rowset_id_generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
#include <memory>
#include <mutex>

#include "olap/storage_engine.h"
#include "runtime/exec_env.h"
#include "util/doris_metrics.h"
#include "util/metrics.h"
#include "util/spinlock.h"
Expand All @@ -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]() {
Expand Down

0 comments on commit ce05c47

Please sign in to comment.