avoid usize overflow for MAXIMUM_APPEND_VEC_FILE_SIZE on 32-bit platforms
This commit is contained in:
parent
d1d7182365
commit
adbf31b98c
|
@ -33,7 +33,10 @@ macro_rules! u64_align {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(target_pointer_width = "64")]
|
||||||
const MAXIMUM_APPEND_VEC_FILE_SIZE: usize = 16 * 1024 * 1024 * 1024; // 16 GiB
|
const MAXIMUM_APPEND_VEC_FILE_SIZE: usize = 16 * 1024 * 1024 * 1024; // 16 GiB
|
||||||
|
#[cfg(target_pointer_width = "32")]
|
||||||
|
const MAXIMUM_APPEND_VEC_FILE_SIZE: usize = 2 * 1024 * 1024 * 1024; // 2 GiB
|
||||||
|
|
||||||
pub type StoredMetaWriteVersion = u64;
|
pub type StoredMetaWriteVersion = u64;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue