Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: open/close dl without self-defined reference count #3401

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

emo-coder
Copy link
Contributor

@github-actions github-actions bot added the execute-engine hybridse sql engine label Jul 26, 2023
hybridse/src/udf/dynamic_lib_manager.h Outdated Show resolved Hide resolved
hybridse/src/udf/dynamic_lib_manager.cc Outdated Show resolved Hide resolved
@emo-coder emo-coder changed the title feat: dl without mutex lock handler feat: open/close dl without mutex lock handler Aug 1, 2023
@codecov
Copy link

codecov bot commented Aug 1, 2023

Codecov Report

Patch coverage: 50.00% and project coverage change: -0.02% ⚠️

Comparison is base (c4a8371) 75.70% compared to head (b8d262b) 75.68%.
Report is 5 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #3401      +/-   ##
============================================
- Coverage     75.70%   75.68%   -0.02%     
  Complexity      414      414              
============================================
  Files           700      701       +1     
  Lines        126668   126667       -1     
  Branches       1206     1206              
============================================
- Hits          95888    95867      -21     
- Misses        30539    30559      +20     
  Partials        241      241              
Files Changed Coverage Δ
hybridse/src/udf/dynamic_lib_manager.h 100.00% <ø> (ø)
hybridse/src/udf/dynamic_lib_manager.cc 63.15% <50.00%> (-5.50%) ⬇️

... and 21 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dl239 dl239 marked this pull request as ready for review August 2, 2023 11:03
@dl239 dl239 changed the title feat: open/close dl without mutex lock handler feat: open/close dl without self-defined reference count Aug 2, 2023
if (iter->second->ref_cnt == 0) {
so_handle = iter->second;
handle_map_.erase(iter);
if (iter->second != nullptr) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

erase first

Copy link
Collaborator

@dl239 dl239 Aug 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a dynamic lib may be used by multi functions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
execute-engine hybridse sql engine
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants