Skip to content

Fix hasUpdated for folders in openstack swift - #10885

Merged
LukasReschke merged 2 commits into
masterfrom
swift-hasupdated
Sep 8, 2014
Merged

LukasReschke merged 2 commits into
masterfrom
swift-hasupdated

Conversation

@icewind1991

Copy link
Copy Markdown
Contributor

Changes hasUpdated for folders to compare the content cached in the database against the content from the object store.

Also fixes some configuration problem with Rackspace

Fixes #8633

cc @PVince81 @ser72 @DeepDiver1975

@scrutinizer-notifier

Copy link
Copy Markdown

A new inspection was created.

@karlitschek

Copy link
Copy Markdown
Contributor

looks good. but not tested 👍

@PVince81

PVince81 commented Sep 5, 2014

Copy link
Copy Markdown
Contributor

It makes sense, but some people might want to use SWIFT only through ownCloud.
This flag would reduce performance as we'll be scanning the whole storage with every access, right ? (a workaround to make sure we catch the non-OC changes).

At some point we might want to introduce a storage flag "always scan" aka "I also want to use this storage outside of ownCloud".

@karlitschek

Copy link
Copy Markdown
Contributor

Yes. Scanning should be optional for performance reasons

@icewind1991

Copy link
Copy Markdown
Contributor Author

It makes sense, but some people might want to use SWIFT only through ownCloud.

that's what 'filesystem_check_changes' => 0 is for

@PVince81

PVince81 commented Sep 5, 2014

Copy link
Copy Markdown
Contributor

True, but this affects all storages. You couldn't use SMB + SWIFT together then.

Still, I don't think that we want to add such flag right now.

@karlitschek already gave a thumbs up so I assume we're ok to have the less performant approach now ?

@icewind1991

Copy link
Copy Markdown
Contributor Author

This isn't much less performant than the old approach, only a single http request is made

@PVince81

PVince81 commented Sep 8, 2014

Copy link
Copy Markdown
Contributor

Sorry @icewind1991. Next time I should actually read the code...
This is the return true approach you suggested in the past but a much better approach.

I'll have another look.

@PVince81

PVince81 commented Sep 8, 2014

Copy link
Copy Markdown
Contributor

It won't detect if a file contents/size has changed remotely since this is only based on the file names.

But as this is already an improvement, let's merge this 👍

@PVince81

PVince81 commented Sep 8, 2014

Copy link
Copy Markdown
Contributor

@owncloud-bot retest this please

@ghost

ghost commented Sep 8, 2014

Copy link
Copy Markdown

@icewind1991

Copy link
Copy Markdown
Contributor Author

please review @DeepDiver1975 @schiesbn

LukasReschke added a commit that referenced this pull request Sep 8, 2014
Fix hasUpdated for folders in openstack swift
@LukasReschke
LukasReschke merged commit 0ec9c2c into master Sep 8, 2014
@LukasReschke
LukasReschke deleted the swift-hasupdated branch September 8, 2014 16:20
@LukasReschke

Copy link
Copy Markdown
Contributor

👍

@lock lock Bot locked as resolved and limited conversation to collaborators Aug 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[6.0.3] Files uploaded directly to SWIFT storage don't show up in oC

5 participants