From: Srinivasa Ragavan Date: Thu, 24 Jul 2008 20:08:11 +0000 (+0000) Subject: Sync the db before we do a search. So that we are always on sync with X-Git-Tag: upstream/3.7.4~4825 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=64b87e02fc0901f6d12f840cde918788beab38bf;p=platform%2Fupstream%2Fevolution-data-server.git Sync the db before we do a search. So that we are always on sync with 2008-07-25 Srinivasa Ragavan * camel/camel-folder-search.c: Sync the db before we do a search. So that we are always on sync with view. svn path=/trunk/; revision=9182 --- diff --git a/camel/ChangeLog b/camel/ChangeLog index 1fb3888..db127ce 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,5 +1,10 @@ 2008-07-25 Srinivasa Ragavan + * camel/camel-folder-search.c: Sync the db before we do a search. So + that we are always on sync with view. + +2008-07-25 Srinivasa Ragavan + ** Fix for bug #544491 * camel/camel-db.c: Lock while 2 thread try to access same folder's diff --git a/camel/camel-folder-search.c b/camel/camel-folder-search.c index 6718167..91555b3 100644 --- a/camel/camel-folder-search.c +++ b/camel/camel-folder-search.c @@ -464,6 +464,9 @@ camel_folder_search_search(CamelFolderSearch *search, const char *expr, GPtrArra struct _CamelFolderSearchPrivate *p = _PRIVATE(search); g_assert(search->folder); + + /* Sync the db, so that we search the db for changes */ + camel_folder_summary_save_to_db (search->folder->summary, ex); p->ex = ex;