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

curvefs/client: fix warmup bug(#1841) #1862

Merged
merged 1 commit into from
Aug 29, 2022

Conversation

wuhongsong
Copy link
Contributor

@wuhongsong wuhongsong commented Aug 25, 2022

if all objs has cached, then the function will block

signed-off-by: hzwuhongsong [email protected]

What problem does this PR solve?

Issue Number: #1841

Issue Number: #1833

@@ -304,7 +304,8 @@ void FuseS3Client::WarmUpAllObjs(
context->cb = cb;
s3Adaptor_->GetS3Client()->DownloadAsync(context);
}
cond.Wait();
if (pendingReq.load())
Copy link
Member

Choose a reason for hiding this comment

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

It seems useless, please explain why?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

if all objs has cached, then the function will block

@wuhongsong
Copy link
Contributor Author

recheck

if all objs has cached, then the function will block

signed-off-by: hzwuhongsong [email protected]
@wuhongsong
Copy link
Contributor Author

recheck

4 similar comments
@wuhongsong
Copy link
Contributor Author

recheck

@YunhuiChen
Copy link
Contributor

recheck

@wuhongsong
Copy link
Contributor Author

recheck

@wuhongsong
Copy link
Contributor Author

recheck

@wuhongsong wuhongsong merged commit 683f6eb into opencurve:master Aug 29, 2022
@wuhongsong wuhongsong deleted the warmup_fixs branch March 24, 2023 01:39
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.

4 participants