-
Notifications
You must be signed in to change notification settings - Fork 186
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
Add constexpr for Filesystem support #4548
Conversation
This pull request has been linked to Shortcut Story #37703: Define |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There a behavioral regression removing what --vfs
does on the test command line. We need to preserve this.
Everything else is name changes of one sort or another.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Defect in get_supported_fs
, plus some other cleanup there. Otherwise good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
One stylistic nit about what kind of exception to throw; it's technically benign and does not constitute a behavior defect.
One step toward `VFS` and `tiledb_unit` cleanup. In `vfs.h`, add `constexpr` to represent whether or not a filesystem is supported. Additionally, do some miscellaneous, related cleanup. --- TYPE: IMPROVEMENT DESC: Use constexpr to check for filesystem support
get_supported_fs( | ||
&supports_s3, &supports_hdfs, &supports_azure, &supports_gcs); | ||
if (supports_s3) { | ||
if constexpr (tiledb::sm::filesystem::s3_enabled) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has caused the cloud VFSes to be initialized even when I pass --vfs native
, if TileDB is compiled with the cloud VFSes enabled.
One step toward
VFS
andtiledb_unit
cleanup. Invfs.h
, addconstexpr
to represent whether or not a filesystem is supported. Additionally, do some miscellaneous, related cleanup.TYPE: IMPROVEMENT
DESC: Use constexpr to check for filesystem support