[libgda] Connection locking correction



commit a9d12951b59683bdebd1be27956beb9e82a91106
Author: Vivien Malerba <malerba gnome-db org>
Date:   Mon Jul 12 19:35:04 2010 +0200

    Connection locking correction

 libgda/gda-connection.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libgda/gda-connection.c b/libgda/gda-connection.c
index 50f88a6..aeea0ee 100644
--- a/libgda/gda-connection.c
+++ b/libgda/gda-connection.c
@@ -5433,7 +5433,7 @@ gda_connection_get_meta_store (GdaConnection *cnc)
 
 	g_return_val_if_fail (GDA_IS_CONNECTION (cnc), NULL);
 
-	gda_connection_lock ((GdaLockable*) cnc);
+	g_mutex_lock (cnc->priv->object_mutex);
 	if (!cnc->priv->meta_store) {
 		ThreadConnectionData *cdata = NULL;
 		if (cnc->priv->is_thread_wrapper) {
@@ -5453,7 +5453,7 @@ gda_connection_get_meta_store (GdaConnection *cnc)
 		}
 	}
 	store = cnc->priv->meta_store;
-	gda_connection_unlock ((GdaLockable*) cnc);
+	g_mutex_unlock (cnc->priv->object_mutex);
 	
 	return store;
 }



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