Repository navigation
Conversation
|
By analyzing the blame information on this pull request, we identified @DeepDiver1975, @nickvergessen and @icewind1991 to be potential reviewers |
|
Something to be backported to 9.0 and maybe even 8.2. |
|
Shouldn't this has some ttl logic |
|
@icewind1991 hmmm... but I still see reports of people with stray locks, even after waiting for three days. (not sure what OC version though). The repair step would mostly be useful for the pre-TTL OC versions. |
|
Mmmm could it be those people don't have their cron configured properly. |
That depends on to many factors to properly awnser. |
|
I'm ok with retracting this PR. Actually when I wrote it I completely forgot about the TTL. |
| $qb = $this->connection->getQueryBuilder(); | ||
| $qb->update('file_locks') | ||
| ->set('lock', $qb->expr()->literal(0)) | ||
| ->where($qb->expr()->neq('lock', $qb->expr()->literal(0))); |
There was a problem hiding this comment.
When this repair step is run with occ maintenance:repair while an upload/action is in progress, it will cause problems?
additional to that with the problem I pointed out above, I'd say that's best to do. |
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Fixes #24494
Note: I decided to just reset the "lock" value to 0 instead of deleting all entries to prevent bigger database operations (does a DBMS defragment or restructure the data when deleting entries ?).
@owncloud/filesystem @butonic @nickvergessen