This is an automated email from the ASF dual-hosted git repository.
lidavidm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-adbc.git
The following commit(s) were added to refs/heads/main by this push:
new d3348f0c1 fix(rust/driver_manager): load with RTLD_NOW (#4665)
d3348f0c1 is described below
commit d3348f0c175bfbf7d862f12f3dcf2541635964c3
Author: David Li <[email protected]>
AuthorDate: Sat Aug 8 15:41:55 2026 +0900
fix(rust/driver_manager): load with RTLD_NOW (#4665)
I've omitted tests for now. I think I'd like to build up a suite of
cases like this that we can apply across the C++, Rust, and C# driver
managers to help ensure consistency.
Closes #4663.
---
rust/driver_manager/src/search.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rust/driver_manager/src/search.rs
b/rust/driver_manager/src/search.rs
index 5ee80354c..0573503b8 100644
--- a/rust/driver_manager/src/search.rs
+++ b/rust/driver_manager/src/search.rs
@@ -317,7 +317,7 @@ impl<'a> DriverLibrary<'a> {
libloading::os::unix::Library::open(
Some(filename.as_ref()),
- libloading::os::unix::RTLD_LAZY |
libloading::os::unix::RTLD_LOCAL | RTLD_NODELETE,
+ libloading::os::unix::RTLD_NOW |
libloading::os::unix::RTLD_LOCAL | RTLD_NODELETE,
)
.map(Into::into)
.map_err(libloading_error_to_adbc_error)?