-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
The Great Fix of object store acceptance tests .... #31285
Changes from all commits
9b80da6
fff6f23
a6056dc
8c43eb4
7b6b8c7
ee4c46e
9533827
c0085ba
67287a2
9a52643
98d8170
0f1d04a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -93,9 +93,9 @@ public function propagateChange($internalPath, $time, $sizeDifference = 0) { | |
->where($builder->expr()->eq('storage', $builder->createNamedParameter($storageId, IQueryBuilder::PARAM_INT))) | ||
->andWhere($builder->expr()->in('path_hash', $hashParams)) | ||
->andWhere($builder->expr()->gt('size', $builder->expr()->literal(-1, IQueryBuilder::PARAM_INT))); | ||
} | ||
|
||
$builder->execute(); | ||
$builder->execute(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. :> There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔀 |
||
} | ||
} | ||
|
||
protected function getParents($path) { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -663,7 +663,8 @@ private function isAccessibleResult($data) { | |
// exclude shares leading to trashbin on home storages | ||
$pathSections = \explode('/', $data['path'], 2); | ||
// FIXME: would not detect rare md5'd home storage case properly | ||
if ($pathSections[0] !== 'files' && \explode(':', $data['storage_string_id'], 2)[0] === 'home') { | ||
$storagePrefix = \explode(':', $data['storage_string_id'], 2)[0]; | ||
if ($pathSections[0] !== 'files' && \in_array($storagePrefix, ['home', 'object'], true)) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why object? Could you add some doc explaining what is that for? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There are basically two different types of storage prefixes: 'home' for regular file system and 'object' for objectstore - the later part was missing in some places - fixed in this PR There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ok, makes sense! |
||
return false; | ||
} | ||
return true; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -235,6 +235,7 @@ public function delete() { | |
|
||
// Delete the users entry in the storage table | ||
Storage::remove('home::' . $this->getUID()); | ||
Storage::remove('object::user:' . $this->getUID()); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. so there are now two homes for user? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. see above There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can be something else then X=user in object::X: ? |
||
|
||
\OC::$server->getCommentsManager()->deleteReferencesOfActor('users', $this->getUID()); | ||
\OC::$server->getCommentsManager()->deleteReadMarksFromUser($this); | ||
|
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.
$destinationNode->put
itself is not setting locks ? Need to go deeper, it is a logic of put itself, isnt it?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.
search for other places there put is used - the node is locked before