Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
morningman committed Feb 25, 2025
1 parent fe0795a commit 14245d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion be/src/util/jni-util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ namespace doris {
namespace {
JavaVM* g_vm;
[[maybe_unused]] std::once_flag g_vm_once;
[[maybe_unused]] std::once_flag g_jvm_conf_once;

const std::string GetDorisJNIDefaultClasspath() {
const auto* doris_home = getenv("DORIS_HOME");
Expand Down Expand Up @@ -265,7 +266,7 @@ Status JniUtil::GetJNIEnvSlowPath(JNIEnv** env) {
}
#else
// the hadoop libhdfs will do all the stuff
SetEnvIfNecessary();
std::call_once(g_jvm_conf_once, SetEnvIfNecessary);
tls_env_ = getJNIEnv();
#endif
*env = tls_env_;
Expand Down

0 comments on commit 14245d4

Please sign in to comment.