You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Address PR review comments: correctness and safety fixes
- to_fs_path: don't prepend '/' if path already starts with '/' to avoid
double-slash paths like '//tmp/lineitem.lance'
- try_sysfs_queue_depth: use /sys/dev/block/MAJOR:MINOR symlink instead of
scanning /sys/block/ by major number only; correctly handles partitions
(e.g. sda1 vs sdb1 sharing major=8) by resolving the symlink and walking
up to the parent disk device that owns queue/nr_requests
- spawn_writer_thread: move raw_fd extraction inside the closure, after
'file' is established, making the lifetime relationship explicit
- put_part: SeqCst → Relaxed for offset fetch_add; each part writes to its
own non-overlapping range so no cross-thread happens-before is needed
- lance_writer.cpp: check return value of lance_writer_enable_io_uring and
throw on failure, consistent with lance_writer_set_write_params handling
- lib.rs: gate io_uring module on target_os = "linux" in addition to the
feature flag; the module uses Unix-only APIs (AsRawFd, MetadataExt, sysfs)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments