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

Fix swift touch operation #7911

Merged
merged 1 commit into from
Mar 27, 2014
Merged

Fix swift touch operation #7911

merged 1 commit into from
Mar 27, 2014

Conversation

PVince81
Copy link
Contributor

The touch() operation now uses "UpdateMetadata()" instead of "Update()"
which doesn't clear the object's contents.

This fixes syncing, as the sync client needs to use touch to update the
object's mtime.

Should fix the syncing issue and "0 byte" issue mentionned in #7191

Please review/test @icewind1991 @yannickgrammont @joakimohman @leonardofln @ser72

The touch() operation now uses "UpdateMetadata()" instead of "Update()"
which doesn't clear the object's contents.

This fixes syncing, as the sync client needs to use touch to update the
object's mtime.
@icewind1991
Copy link
Contributor

Code makes sense 👍 , don't have a swift install to test it with atm.

@PVince81
Copy link
Contributor Author

I've tested it with the sync client 😄

@scrutinizer-notifier
Copy link

The inspection completed: No new issues

@ghost
Copy link

ghost commented Mar 27, 2014

🚀 Test Passed. 🚀
Refer to this link for build results: https://ci.owncloud.org/job/pull-request-analyser/3913/

@karlitschek
Copy link
Contributor

looks good. not tested 👍

PVince81 pushed a commit that referenced this pull request Mar 27, 2014
@PVince81 PVince81 merged commit 531f3cf into master Mar 27, 2014
@PVince81 PVince81 deleted the ext-fixswifttouchoperation branch March 27, 2014 17:10
@PVince81
Copy link
Contributor Author

@karlitschek backport to stable6 ?

@karlitschek
Copy link
Contributor

yes. would be great.

@PVince81
Copy link
Contributor Author

Backported to stable6 as 17e5c03

@lock lock bot locked as resolved and limited conversation to collaborators Aug 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants