Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

db: fix Open issue with single-item relative paths #3847

Merged
merged 1 commit into from
Aug 13, 2024

Conversation

jbowens
Copy link
Collaborator

@jbowens jbowens commented Aug 12, 2024

Previously Open with a relative path containing a single element would fail on real filesystems, because Open would attempt to open the empty path.

Fix #3509.

@jbowens jbowens requested a review from a team as a code owner August 12, 2024 21:13
@jbowens jbowens requested a review from sumeerbhola August 12, 2024 21:13
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Member

@RaduBerinde RaduBerinde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewable status: 0 of 8 files reviewed, all discussions resolved (waiting on @sumeerbhola)

Previously Open with a relative path containing a single element would fail on
real filesystems, because Open would attempt to open the empty path.

Fix cockroachdb#3842.
@jbowens jbowens force-pushed the mkdirallandsyncparents branch from 6e0b655 to 4512006 Compare August 13, 2024 19:56
@jbowens
Copy link
Collaborator Author

jbowens commented Aug 13, 2024

TFTR!

@jbowens jbowens merged commit 9f56153 into cockroachdb:master Aug 13, 2024
11 checks passed
@jbowens jbowens deleted the mkdirallandsyncparents branch August 13, 2024 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

db: opening in non-read-only mode can fail depending how the path is specified
3 participants