[libgda] Disable GdaDataProxy defer sync. by default
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] Disable GdaDataProxy defer sync. by default
- Date: Sun, 29 Nov 2015 13:53:47 +0000 (UTC)
commit 8b5eac98955ee122948069cbe95b4975ddf7a9c4
Author: Vivien Malerba <malerba gnome-db org>
Date: Sun Nov 29 14:46:35 2015 +0100
Disable GdaDataProxy defer sync. by default
libgda/gda-data-proxy.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/libgda/gda-data-proxy.c b/libgda/gda-data-proxy.c
index 3d1ac8a..af15af7 100644
--- a/libgda/gda-data-proxy.c
+++ b/libgda/gda-data-proxy.c
@@ -791,7 +791,7 @@ gda_data_proxy_init (GdaDataProxy *proxy)
do_init (proxy);
proxy->priv->add_null_entry = FALSE;
- proxy->priv->defer_sync = TRUE;
+ proxy->priv->defer_sync = FALSE;
proxy->priv->cache_changes = FALSE;
}
@@ -2523,7 +2523,8 @@ static gboolean
chunk_sync_idle (GdaDataProxy *proxy)
{
#define IDLE_STEP 50
- g_rec_mutex_lock (& (proxy->priv->mutex));
+ if (! g_rec_mutex_trylock (& (proxy->priv->mutex)))
+ return TRUE; /* we have not finished yet */
gboolean finished = FALSE;
guint index, max_steps, step;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]