[evolution-data-server] [CamelVeeSummary] Do not freeze folder when setting info flags



commit af16040ed2c27616c9607ac4bfb96335de2af51a
Author: Milan Crha <mcrha redhat com>
Date:   Mon Sep 7 15:38:14 2015 +0200

    [CamelVeeSummary] Do not freeze folder when setting info flags
    
    The thaw can cause write of message changes, which can cause slowness
    when saving changes for many message infos.

 camel/camel-vee-summary.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/camel/camel-vee-summary.c b/camel/camel-vee-summary.c
index a1ea8a8..f602f2f 100644
--- a/camel/camel-vee-summary.c
+++ b/camel/camel-vee-summary.c
@@ -256,9 +256,7 @@ vee_info_set_flags (CamelMessageInfo *mi,
                if (ignore_changes)
                        camel_vee_folder_ignore_next_changed_event (vf, camel_folder_summary_get_folder 
(rmi->summary));
 
-               camel_folder_freeze (camel_folder_summary_get_folder (rmi->summary));
                res = camel_message_info_set_flags (rmi, flags, set);
-               camel_folder_thaw (camel_folder_summary_get_folder (rmi->summary));
 
                if (res) {
                        /* update flags on itself too */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]