Skip to content

Commit 5c0d881

Browse files
committed
Upgrade to Rust 1.77
1 parent 5ad51d8 commit 5c0d881

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

Diff for: .github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
steps:
1313
- uses: actions/checkout@v3
14-
- uses: dtolnay/rust-toolchain@1.75.0
14+
- uses: dtolnay/rust-toolchain@1.77.1
1515
id: toolchain
1616
with:
1717
components: clippy, rustfmt

Diff for: Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Initial build.
2-
FROM rust:1.75-slim AS build
2+
FROM rust:1.77-slim AS build
33

44
# For Apple silicon Macs: --build-arg TARGET=aarch64-unknown-linux-musl
55
ARG TARGET=x86_64-unknown-linux-musl

Diff for: src/storage/engine/bitcask.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,12 @@ impl Log {
239239
if let Some(dir) = path.parent() {
240240
std::fs::create_dir_all(dir)?
241241
}
242-
let file = std::fs::OpenOptions::new().read(true).write(true).create(true).open(&path)?;
242+
let file = std::fs::OpenOptions::new()
243+
.read(true)
244+
.write(true)
245+
.create(true)
246+
.truncate(false)
247+
.open(&path)?;
243248
file.try_lock_exclusive()?;
244249
Ok(Self { path, file })
245250
}

0 commit comments

Comments
 (0)