MySQL Lists are EOL. Please join:

List:Commits« Previous MessageNext Message »
From:Reggie Burnett Date:April 15 2010 11:36pm
Subject:bzr commit into connector-net-6.2 branch (reggie.burnett:843) Bug#52475
View as plain text  
#At file:///C:/work/bzr-connector-net/6.2/ based on revid:reggie.burnett@stripped

  843 Reggie Burnett	2010-04-15
      put back "misplaced" check for logging flag when writing out debug information inside procedure cache 
       (bug #52475)

    modified:
      CHANGES
      MySql.Data/Provider/Source/ProcedureCache.cs
=== modified file 'CHANGES'
=== modified file 'CHANGES'
--- a/CHANGES	2010-03-11 21:02:47 +0000
+++ b/CHANGES	2010-04-15 23:36:52 +0000
@@ -1,3 +1,8 @@
+Version 6.2.4
+- Replaced check for Settings.Logging when logging information in the 
+  procedure cache.  This is already in 6.1 and 6.0 but got "misplaced" in 6.2
+  (bug #52475)
+
 Version 6.2.3
 - fixed InvalidOperationException when accessing Stream.ReadTimeout or Stream.WriteTimeout on CF
   (bug #50321)

=== modified file 'MySql.Data/Provider/Source/ProcedureCache.cs'
--- a/MySql.Data/Provider/Source/ProcedureCache.cs	2009-11-20 17:04:03 +0000
+++ b/MySql.Data/Provider/Source/ProcedureCache.cs	2010-04-15 23:36:52 +0000
@@ -55,16 +55,18 @@
 #if !CF
                 conn.PerfMonitor.AddHardProcedureQuery();
 #endif
-                MySqlTrace.LogInformation(conn.ServerThread,
-                    String.Format(Resources.HardProcQuery, spName));
+                if (conn.Settings.Logging)
+                    MySqlTrace.LogInformation(conn.ServerThread,
+                        String.Format(Resources.HardProcQuery, spName));
             }
             else
             {
 #if !CF
                 conn.PerfMonitor.AddSoftProcedureQuery();
 #endif
-                MySqlTrace.LogInformation(conn.ServerThread, 
-                    String.Format(Resources.SoftProcQuery, spName));
+                if (conn.Settings.Logging)
+                    MySqlTrace.LogInformation(conn.ServerThread, 
+                        String.Format(Resources.SoftProcQuery, spName));
             }
             return ds;
         }


Attachment: [text/bzr-bundle] bzr/reggie.burnett@sun.com-20100415233652-prut5lrvjuoqhvhs.bundle
Thread
bzr commit into connector-net-6.2 branch (reggie.burnett:843) Bug#52475Reggie Burnett16 Apr