Modify the direct io align size to 4K

This commit is contained in:
dev 2025-03-12 13:27:48 +08:00
parent 3a30c53bf2
commit 94fa3a6543
2 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ enum class FeatureFlags : uint32_t {
ALLOW_READ_UNCOMMITTED = 8,
};
constexpr auto kAIOAlignSize = 512ul;
constexpr auto kAIOAlignSize = 4096ul;
class ChunkId {
public:

View File

@ -1,7 +1,7 @@
use super::super::Size;
use std::alloc::Layout;
pub const ALIGN_SIZE: Size = Size::new(512);
pub const ALIGN_SIZE: Size = Size::new(4096);
pub struct AlignedBuffer(&'static mut [u8]);