Skip to content

Commit 236c9fe

Browse files
committed
cfallocate feature
1 parent 763797f commit 236c9fe

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

crates/dst/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ version.workspace = true
44
edition.workspace = true
55
rust-version.workspace = true
66

7+
[features]
8+
default = ["fallocate"]
9+
fallocate = ["spacetimedb-commitlog/fallocate"]
10+
711
[dependencies]
812
anyhow.workspace = true
913
clap.workspace = true

crates/dst/src/sim/commitlog.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,10 @@ impl FileLike for Segment {
400400

401401
Ok(())
402402
}
403+
404+
fn fallocate(&mut self, _size: u64) -> io::Result<()> {
405+
Ok(())
406+
}
403407
}
404408

405409
pub struct ReadOnlySegment {

0 commit comments

Comments
 (0)