-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Update cache when file size === 0 #35353
Update cache when file size === 0 #35353
Conversation
/backport to stable25 |
/backport to stable24 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but didnt test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
great find! |
/backport to stable23 |
backporting further because file cache inconsistencies can be nasty with some versions of the desktop client |
@artonge linter not happy though, maybe remove the unrelated formatting changes ? |
The conditions were false when $result === 0. $results here contains the number of written bits. The correct way of checking for operation success is to check if $result === false Signed-off-by: Louis Chemineau <louis@chmn.me>
fb73ab2
to
66ba90c
Compare
The conditions were false when
$result === 0
.$results
here contains the number of written bits.The correct way of checking for operation success is to check if
$result === false
Question
$result
is supposed to contain for other operation, but it is probably safe to assume that none were returning 0 for saying errorHow to test