Should ObjectStore sizes be u64
instead of usize
?
#6111
Labels
enhancement
Any new improvement worthy of a entry in the changelog
object-store
Object Store Interface
I noticed that
object_store::ObjectMeta::size
is of typeusize
. On 32-bit platforms, this would limit the value to 4 GiB.There are object stores out there that accept files larger than 4 GiB. For instance, Google Cloud Storage supports objects up to 5 TiB. Common local filesystems (with the exception of FAT32) also support larger files.
There might be more APIs where
usize
is used to represent file size, but I didn't check.The text was updated successfully, but these errors were encountered: