Opening a folder (especially in threaded mode) does a very heavy SQL query. This method doesn't use or modify the folder object. Don't cargo-cult the Open here.
(cketti may well tell me I'm wrong about this. Happy to listen & fix)
This commit is contained in:
parent
bcc2263e07
commit
876d478ad7
1 changed files with 0 additions and 4 deletions
|
@ -1521,10 +1521,6 @@ public class LocalStore extends Store implements Serializable {
|
|||
|
||||
@Override
|
||||
public int getUnreadMessageCount() throws MessagingException {
|
||||
if (!isOpen()) {
|
||||
open(OpenMode.READ_WRITE);
|
||||
}
|
||||
|
||||
try {
|
||||
return database.execute(false, new DbCallback<Integer>() {
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue