-
Notifications
You must be signed in to change notification settings - Fork 262
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 database locks #4819
Fix database locks #4819
Conversation
While testing i realized that things are a better but with the combined mailboxes(in my case 2) the problem still exist if the initial sync is in progress. |
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.
Looks good
lib/Db/MailboxMapper.php
Outdated
@@ -119,7 +115,6 @@ public function findById(int $id): Mailbox { | |||
* | |||
* @return Mailbox | |||
* | |||
* @throws DoesNotExistException |
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.
please revert
lib/Db/MailboxMapper.php
Outdated
@@ -93,7 +90,6 @@ public function find(Account $account, string $name): Mailbox { | |||
* | |||
* @return Mailbox | |||
* | |||
* @throws DoesNotExistException |
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.
revert
lib/Db/MailboxMapper.php
Outdated
@@ -66,7 +64,6 @@ public function findAll(Account $account): array { | |||
} | |||
|
|||
/** | |||
* @throws DoesNotExistException |
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.
revert
lib/Db/MailboxMapper.php
Outdated
@@ -31,13 +31,11 @@ | |||
use OCA\Mail\Account; | |||
use OCA\Mail\Exception\MailboxLockedException; | |||
use OCA\Mail\Exception\ServiceException; | |||
use OCP\AppFramework\Db\DoesNotExistException; |
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.
revert
lib/Db/MailboxMapper.php
Outdated
use OCP\AppFramework\Db\MultipleObjectsReturnedException; | ||
use OCP\AppFramework\Db\QBMapper; | ||
use OCP\AppFramework\Utility\ITimeFactory; | ||
use OCP\DB\QueryBuilder\IQueryBuilder; | ||
use OCP\IDBConnection; | ||
use function array_map; |
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.
still used -> revert
/backport to stable1.9 |
Signed-off-by: Anna Larch <[email protected]>
b3fc064
to
00ea427
Compare
The backport to stable1.9 failed. Please do this backport manually. |
See #4812
Added the timestamp to the hasLocks method as to avoid only relying on tokens but not checking if they are still valid.