Skip to content

fix: resolve multi thread mkdir error#8

Merged
zjw1111 merged 9 commits intoalibaba:mainfrom
zjw1111:fix_multithread_mkdir
Dec 17, 2025
Merged

fix: resolve multi thread mkdir error#8
zjw1111 merged 9 commits intoalibaba:mainfrom
zjw1111:fix_multithread_mkdir

Conversation

@zjw1111
Copy link
Copy Markdown
Collaborator

@zjw1111 zjw1111 commented Dec 16, 2025

Purpose

Fix error when multi thread mkdir, the first thread mkdir success, and the other threads return "directory already exist" error.

The expected behavior is: the first thread mkdir success, and the other threads do nothing and return Status::OK().

Tests

TestMkdirMultiThreadWithSameName
TestMkdirMultiThreadWithSameNameWithRelativePath
TEST(LocalFileTest, TestMkdir);

API and Format

Documentation

@zjw1111 zjw1111 merged commit 967ae4f into alibaba:main Dec 17, 2025
6 checks passed
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.

3 participants