Active share validation/authoritative mount improvements#57760
Active share validation/authoritative mount improvements#57760icewind1991 wants to merge 17 commits intomasterfrom
Conversation
b1a28af to
054c5c0
Compare
…s for new share" Signed-off-by: Joas Schilling <coding@schilljs.com>
…s for new share" Signed-off-by: Joas Schilling <coding@schilljs.com>
054c5c0 to
3e548a5
Compare
3e548a5 to
4851386
Compare
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
000d868 to
716d880
Compare
b35ead2 to
8e50698
Compare
f29cc31 to
4b00db9
Compare
| foreach ($this->shareManager->getUsersForShare($share) as $user) { | ||
| if ($share->getSharedBy() !== $user->getUID()) { | ||
| $start = floatval($this->clock->now()->format('U.u')); | ||
| if ($this->cutOffMarkTime === -1.0 || $this->updatedTime < $this->cutOffMarkTime) { |
There was a problem hiding this comment.
So that cutOffMarkTime can be 0 and we can go straight to updating.
By the way, I am not sure whether it makes sense to try to update as many users as possible here instead of flagging them. Do we have more information now compared to later?
| if ($this->cutOffMarkTime === -1.0 || $this->updatedTime < $this->cutOffMarkTime) { | |
| if ($this->cutOffMarkTime === -1.0 || $this->updatedTime <= $this->cutOffMarkTime) { |
There was a problem hiding this comment.
So that cutOffMarkTime can be 0 and we can go straight to updating.
This is already the case.
Do we have more information now compared to later?
Yes, for the single-share-add case, possibly in the future for the single-share delete or transfer cases.
There was a problem hiding this comment.
Now also for the delete case
There was a problem hiding this comment.
This is already the case.
$this->updatedTime = 0
$this->cutOffMarkTime = 0
// Then
($this->updatedTime < $this->cutOffMarkTime) === falseOr am I missing something?
356d8f8 to
4de187a
Compare
Signed-off-by: Joas Schilling <coding@schilljs.com>
|
Retriggered talk tests in nextcloud/spreed#16987 |
Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Robin Appelman <robin@icewind.nl>
…number of users Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
Added #58727 which is separate since it needs to be backported further. |
0a8ad13 to
cd161cc
Compare
|
|
||
| public function getData() { | ||
| return $this->data; | ||
| public function getData(): ICacheEntry { |
There was a problem hiding this comment.
comment: I feel like we should have interfaces extending the public ones so that we can actually add methods like this there 🤔 It would double the amount of interfaces we have though 👀 or... we could just do it for the ones where we need to add non-OCP functions
Signed-off-by: Joas Schilling <coding@schilljs.com>
Uh oh!
There was an error while loading. Please reload this page.