quantranhong1999 commented on code in PR #997:
URL: https://github.com/apache/james-project/pull/997#discussion_r878992101


##########
mailbox/store/src/main/java/org/apache/james/mailbox/store/StoreMailboxManager.java:
##########
@@ -590,7 +590,7 @@ private List<MailboxRenamedResult> doRenameMailbox(Mailbox 
mailbox, MailboxPath
                 .asUserBound();
             locker.executeWithLock(from, (LockAwareExecution<Void>) () -> {
                 block(mapper.findMailboxWithPathLike(query)
-                    .flatMap(sub -> {
+                    .concatMap(sub -> {

Review Comment:
   Me I think RENAME is not a common command to be called much in the real 
world and even its edge case with so many sub mailboxes, therefore I would 
agree on choosing the performance here.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to