Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
garenshi committed Oct 12, 2024
1 parent f9ecc88 commit 748a1db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion be/src/util/jni_metrics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ void JniMetrics::_init() {
LOG(INFO) << "jni metrics inited successfully";
}

void JniMetrics::update_jdbc_connection_metrics() {
void JniMetrics::update_jdbc_connection_metrics() const {
if (!_is_init) {
return;
}
Expand Down
5 changes: 2 additions & 3 deletions be/src/util/jni_metrics.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#pragma once

#include "jni.h"
#include <jni.h>
#include "util/metrics.h"

namespace doris {
Expand All @@ -28,11 +28,10 @@ class JniMetrics {
public:
JniMetrics(MetricRegistry* registry);
~JniMetrics();
void update_jdbc_connection_metrics();
void update_jdbc_connection_metrics() const;

private:
void _init();
private:
static const char* _s_hook_name;
bool _is_init = false;
MetricRegistry* _registry = nullptr;
Expand Down

0 comments on commit 748a1db

Please sign in to comment.