[libgda] Better way to debug meta store update process



commit e1a642aee05ce06083b6979cff37ab9c5770e59d
Author: Vivien Malerba <malerba gnome-db org>
Date:   Wed Jan 6 14:38:22 2010 +0100

    Better way to debug meta store update process
    
    
    now only define GDA_DEBUG_META_STORE_UPDATE to debug
    the meta store update process

 libgda/gda-connection.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/libgda/gda-connection.c b/libgda/gda-connection.c
index ff96c6b..acfcee4 100644
--- a/libgda/gda-connection.c
+++ b/libgda/gda-connection.c
@@ -3075,7 +3075,8 @@ meta_context_stringify (GdaMetaContext *context)
 	return str;
 }
 
-#ifdef GDA_DEBUG_NO
+/*#define GDA_DEBUG_META_STORE_UPDATE*/
+#ifdef GDA_DEBUG_META_STORE_UPDATE
 static void
 meta_context_dump (GdaMetaContext *context)
 {
@@ -3175,7 +3176,7 @@ local_meta_update (GdaServerProvider *provider, GdaConnection *cnc, GdaMetaConte
 	gint i;
 
 
-#ifdef GDA_DEBUG_NO
+#ifdef GDA_DEBUG_META_STORE_UPDATE
 	g_print ("%s() => ", __FUNCTION__);
 	meta_context_dump (context);
 #endif
@@ -4016,7 +4017,7 @@ gda_connection_update_meta_store (GdaConnection *cnc, GdaMetaContext *context, G
 			}
 		}
 
-#ifdef GDA_DEBUG_NO
+#ifdef GDA_DEBUG_META_STORE_UPDATE
 		g_print ("\n*********** TEMPLATES:\n");
 		for (list = up_templates; list; list = list->next) {
 			g_print ("UP: ");



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