neondatabase / neon

Neon: Serverless Postgres. We separated storage and compute to offer autoscaling, code-like database branching, and scale to zero.
https://neon.tech
Apache License 2.0
14.48k stars 419 forks source link

Truncate waltmp file on creation #8133

Closed petuhovskiy closed 3 months ago

petuhovskiy commented 3 months ago

Previously in safekeeper code, new segment file was opened without truncate option. I don't think there is a reason to do it, this commit replaces it with File::create to make it simpler and remove clippy::suspicious_open_options linter warning.

github-actions[bot] commented 3 months ago

2916 tests run: 2799 passed, 0 failed, 117 skipped (full report)


Code coverage* (full report)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
361d6f82bad5257aa16228e326567148b9221272 at 2024-06-24T13:34:07.633Z :recycle: